Skip to content

Commit

Permalink
update docs link to avoid redirects
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 1f2a1d2
  • Loading branch information
praveenweb authored and hasura-bot committed Mar 1, 2021
1 parent 5b916ea commit 0ff2610
Show file tree
Hide file tree
Showing 94 changed files with 763 additions and 763 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
Does this PR change Hasura Catalog version?
- [ ] No
- [ ] Yes
- [ ] Updated docs with SQL for downgrading the catalog <!-- https://hasura.io/docs/1.0/graphql/manual/deployment/downgrading.html#downgrading-across-catalogue-versions -->
- [ ] Updated docs with SQL for downgrading the catalog <!-- https://hasura.io/docs/latest/graphql/core/deployment/downgrading.html#downgrading-across-catalogue-versions -->

#### Metadata
<!-- Hasura metadata changes -->
Expand Down
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ query {

Support for this is now added through the `add_computed_field` API.

Read more about the session argument for computed fields in the [docs](https://hasura.io/docs/1.0/graphql/manual/api-reference/schema-metadata-api/computed-field.html).
Read more about the session argument for computed fields in the [docs](https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/computed-field.html).

### Manage seed migrations as SQL files

Expand Down Expand Up @@ -761,7 +761,7 @@ Postgres materialized views are views that are persisted in a table-like form. T
### docs: map Postgres operators to corresponding Hasura operators

Map Postgres operators to corresponding Hasura operators at various places in docs and link to PG documentation for reference.
For example, see [here](https://hasura.io/docs/1.0/graphql/manual/api-reference/schema-metadata-api/syntax-defs.html#operator).
For example, see [here](https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/syntax-defs.html#operator).

(#4502) (close #4056)

Expand Down Expand Up @@ -854,7 +854,7 @@ Read more about check constraints on [Postgres Docs](https://www.postgresql.org/

A new CLI migrations image is introduced to account for the new migrations workflow. If you're have a project with `version: 2` in `config.yaml`, you should use the new image: `hasura/graphql-engine:v1.2.0-cli-migrations-v2`. Mount the migrations at `/hasura-migrations` and metadata at `/hasura-metadata`.

See [upgrade docs](https://hasura.io/docs/1.0/graphql/manual/migrations/upgrade-v2.html).
See [upgrade docs](https://hasura.io/docs/latest/graphql/core/migrations/upgrade-v2.html).

(close #3969) (#4145)

Expand Down Expand Up @@ -929,15 +929,15 @@ docker run hasura/graphql-engine:v1.2.0 graphql-engine --database-url <db-url> d
# start hasura v1.0.0
```

Read more about this command in the [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/downgrading.html#downgrading-hasura-graphql-engine).
Read more about this command in the [docs](https://hasura.io/docs/latest/graphql/core/deployment/downgrading.html#downgrading-hasura-graphql-engine).

(close #1156) (#3760)

### Expiration of connections authenticated by WebHooks

When using webhooks to authenticate incoming requests to the GraphQL engine server, it is now possible to specify an expiration time; the connection to the server will be automatically closed if it's still running when the expiration delay is expired.

Read more about it in the [docs](https://hasura.io/docs/1.0/graphql/manual/auth/authentication/webhook.html).
Read more about it in the [docs](https://hasura.io/docs/latest/graphql/core/auth/authentication/webhook.html).

### Bug fixes and improvements

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,23 @@ The fastest and easiest way to try Hasura out is via [Hasura Cloud](https://hasu

3. Make your first GraphQL query

Create a table and instantly run your first query. Follow this [simple guide](https://hasura.io/docs/1.0/graphql/manual/getting-started/first-graphql-query.html).
Create a table and instantly run your first query. Follow this [simple guide](https://hasura.io/docs/latest/graphql/core/getting-started/first-graphql-query.html).

### Other one-click deployment options

Check out the instructions for the following one-click deployment options:

| **Infra provider** | **One-click link** | **Additional information** |
|:------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------:|
| Heroku | [![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku) | [docs](https://hasura.io/docs/1.0/graphql/manual/guides/deployment/heroku-one-click.html) |
| DigitalOcean | [![Deploy to DigitalOcean](https://graphql-engine-cdn.hasura.io/img/create_hasura_droplet_200px.png)](https://marketplace.digitalocean.com/apps/hasura?action=deploy&refcode=c4d9092d2c48&utm_source=hasura&utm_campaign=readme) | [docs](https://hasura.io/docs/1.0/graphql/manual/guides/deployment/digital-ocean-one-click.html#hasura-graphql-engine-digitalocean-one-click-app) |
| Azure | [![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3a%2f%2fsummer-heart-0930.chufeiyun1688.workers.dev%3a443%2fhttps%2fraw.githubusercontent.com%2fhasura%2fgraphql-engine%2fmaster%2finstall-manifests%2fazure-container-with-pg%2fazuredeploy.json) | [docs](https://hasura.io/docs/1.0/graphql/manual/guides/deployment/azure-container-instances-postgres.html) |
| Render | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/render-examples/hasura-graphql) | [docs](https://hasura.io/docs/1.0/graphql/manual/guides/deployment/render-one-click.html) |
| Heroku | [![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku) | [docs](https://hasura.io/docs/latest/graphql/core/guides/deployment/heroku-one-click.html) |
| DigitalOcean | [![Deploy to DigitalOcean](https://graphql-engine-cdn.hasura.io/img/create_hasura_droplet_200px.png)](https://marketplace.digitalocean.com/apps/hasura?action=deploy&refcode=c4d9092d2c48&utm_source=hasura&utm_campaign=readme) | [docs](https://hasura.io/docs/latest/graphql/core/guides/deployment/digital-ocean-one-click.html#hasura-graphql-engine-digitalocean-one-click-app) |
| Azure | [![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3a%2f%2fsummer-heart-0930.chufeiyun1688.workers.dev%3a443%2fhttps%2fraw.githubusercontent.com%2fhasura%2fgraphql-engine%2fmaster%2finstall-manifests%2fazure-container-with-pg%2fazuredeploy.json) | [docs](https://hasura.io/docs/latest/graphql/core/guides/deployment/azure-container-instances-postgres.html) |
| Render | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/render-examples/hasura-graphql) | [docs](https://hasura.io/docs/latest/graphql/core/guides/deployment/render-one-click.html) |

### Other deployment methods

For Docker-based deployment and advanced configuration options, see [deployment
guides](https://hasura.io/docs/1.0/graphql/manual/getting-started/index.html) or
guides](https://hasura.io/docs/latest/graphql/core/getting-started/index.html) or
[install manifests](install-manifests).

## Architecture
Expand Down Expand Up @@ -126,7 +126,7 @@ processing - [read more](event-triggers.md).

### Derived data or data transformations

Transform data in Postgres or run business logic on it to derive another dataset that can be queried using GraphQL Engine - [read more](https://hasura.io/docs/1.0/graphql/manual/queries/derived-data.html).
Transform data in Postgres or run business logic on it to derive another dataset that can be queried using GraphQL Engine - [read more](https://hasura.io/docs/latest/graphql/core/queries/derived-data.html).

## Demos

Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const (
const (
StrTelemetryNotice = `Help us improve Hasura! The cli collects anonymized usage stats which
allow us to keep improving Hasura at warp speed. To opt-out or read more,
visit https://hasura.io/docs/1.0/graphql/manual/guides/telemetry.html
visit https://hasura.io/docs/latest/graphql/core/guides/telemetry.html
`
)

Expand Down
2 changes: 1 addition & 1 deletion cli/commands/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewInitCmd(ec *cli.ExecutionContext) *cobra.Command {
# Create a hasura project in the current working directory
hasura init .
# See https://hasura.io/docs/1.0/graphql/manual/migrations/index.html for more details`,
# See https://hasura.io/docs/latest/graphql/core/migrations/index.html for more details`,
SilenceUsage: true,
Args: cobra.MaximumNArgs(1),
PreRunE: func(cmd *cobra.Command, args []string) error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ You can also configure the server in JWKS mode and set `HASURA_GRAPHQL_JWT_SECRE
{ "type": "RS256", "jwk_url": "hostname:port/jwks" }
```

More information in the [Hasura documentation](https://hasura.io/docs/1.0/graphql/manual/auth/authentication/jwt.html).
More information in the [Hasura documentation](https://hasura.io/docs/latest/graphql/core/auth/authentication/jwt.html).

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Further reading: [Firebase SDK for Cloud Functions](https://firebase.google.com/

Set `--auth-hook` or `HASURA_GRAPHQL_AUTH_HOOK` to the endpoint obtained above.

[GraphQL engine server flags reference](https://hasura.io/docs/1.0/graphql/manual/deployment/graphql-engine-flags/reference.html) for details.
[GraphQL engine server flags reference](https://hasura.io/docs/latest/graphql/core/deployment/graphql-engine-flags/reference.html) for details.

## Create table and set permission

Follow [Common roles and auth examples](https://hasura.io/docs/1.0/graphql/manual/auth/authorization/common-roles-auth-examples.html)
Follow [Common roles and auth examples](https://hasura.io/docs/latest/graphql/core/auth/authorization/common-roles-auth-examples.html)
on Hasura doc for details of how to setup permission to a table.

Make sure to change id column of user table to TXT type as uid sent from webhook is firebase User UID format (e.g. 0LnvZc7405TjRTbjURhZYYVXPI52)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ Click the following button to edit on glitch

Once you have deployed this webhook, you can use it along with the GraphQL engine. You have to set the webhook URL as an environment variable in the docker container that runs the GraphQL engine.

*[Read the docs](https://hasura.io/docs/1.0/graphql/manual/auth/authentication/webhook.html).*
*[Read the docs](https://hasura.io/docs/latest/graphql/core/auth/authentication/webhook.html).*
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ FIREBASE_CONFIG='{

Once you have deployed this webhook, you can use it along with the GraphQL engine. You have to set the webhook URL as an environment variable in the docker container that runs the GraphQL engine.

*[Read the docs](https://hasura.io/docs/1.0/graphql/manual/auth/authentication/webhook.html).*
*[Read the docs](https://hasura.io/docs/latest/graphql/core/auth/authentication/webhook.html).*

### Firebase

Expand Down
2 changes: 1 addition & 1 deletion community/boilerplates/auth-webhooks/passport-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ The client just need to add `Authorization: Bearer <token>` to the request sendi

The endpoint (say `http://localhost:8080/webhook`) can be given as an environment variable `HASURA_GRAPHQL_AUTH_HOOK` to GraphQL Engine.

[Read more about webhook here](https://hasura.io/docs/1.0/graphql/manual/auth/authentication/webhook.html).
[Read more about webhook here](https://hasura.io/docs/latest/graphql/core/auth/authentication/webhook.html).
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ HASURA_GRAPHQL_AUTH_WEBHOOK=http://localhost:5000/auth-webhook

All queries will be now validated through the webhook.

> Read more on [authentication and access control](https://hasura.io/docs/1.0/graphql/manual/auth/index.html).
> Read more on [authentication and access control](https://hasura.io/docs/latest/graphql/core/auth/index.html).
2 changes: 1 addition & 1 deletion community/boilerplates/event-triggers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Note: *If you want to add support for other platforms, please submit a PR or cre
## Setup Postgres + Hasura GraphQL engine
This boilerplate code assumes that you already have a HGE instance running.

If not you can visit the [docs](https://hasura.io/docs/1.0/graphql/manual/getting-started/index.html) and setup Postgres + HGE.
If not you can visit the [docs](https://hasura.io/docs/latest/graphql/core/getting-started/index.html) and setup Postgres + HGE.

## Deploying the boilerplate examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Click on the following button to deploy GraphQL Engine on Heroku with the free P

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Checkout [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment options.
Checkout [docs](https://hasura.io/docs/latest/graphql/core/deployment/index.html) for other deployment options.


### Setup `netlify-cli`
Expand Down
2 changes: 1 addition & 1 deletion community/boilerplates/event-triggers/zeit-now/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Click on the following button to deploy GraphQL Engine on Heroku with the free P

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Checkout [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment options.
Checkout [docs](https://hasura.io/docs/latest/graphql/core/deployment/index.html) for other deployment options.


### Setup `now`
Expand Down
2 changes: 1 addition & 1 deletion community/boilerplates/remote-schemas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Typical use-cases:

## Docs

[Remote Schema documentation](https://hasura.io/docs/1.0/graphql/manual/remote-schemas/index.html)
[Remote Schema documentation](https://hasura.io/docs/latest/graphql/core/remote-schemas/index.html)

## Architecture

Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/gatsby-contentful-auth0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm install
> Note: if you clone this project through the Gatsby CLI, it will install the modules for you.
## Auth0
This application uses Auth0 to manage identity. Refer to the [Auth0 integration guide](https://hasura.io/docs/1.0/graphql/manual/guides/integrations/auth0-jwt.html) for the configuration.
This application uses Auth0 to manage identity. Refer to the [Auth0 integration guide](https://hasura.io/docs/latest/graphql/core/guides/integrations/auth0-jwt.html) for the configuration.

### Modify auth config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[![Deploy to heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/latest/graphql/core/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[![Deploy to heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/latest/graphql/core/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)

Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/nextjs-postgres-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Boilerplate to get started with Nextjs, Hasura GraphQL engine as CMS and postgre
[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/latest/graphql/core/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `author` table:
Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/nuxtjs-postgres-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/latest/graphql/core/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `author` table:
Expand Down
12 changes: 6 additions & 6 deletions community/sample-apps/quasar-framework-vue-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ Boilerplate to get started with Quasar Framework, Hasura GraphQL engine as CMS a
# Tutorial

- Deploy Postgres and GraphQL Engine on Heroku:

[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/latest/graphql/core/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `author` table:
Open Hasura console: visit https://my-app.herokuapp.com on a browser

Open Hasura console: visit https://my-app.herokuapp.com on a browser
Navigate to `Data` section in the top nav bar and create a table as follows:

![Create author table](../gatsby-postgres-graphql/assets/add_table.jpg)
Expand Down Expand Up @@ -44,7 +44,7 @@ columns: `id`, `title`, `content`, `author_id` (foreign key to `author` table's
yarn install
```

- Open `src/plugins/apollo.js` and configure Hasura's GraphQL Endpoint as follows:
- Open `src/plugins/apollo.js` and configure Hasura's GraphQL Endpoint as follows:
```js

import { ApolloClient } from 'apollo-client'
Expand All @@ -66,7 +66,7 @@ const apolloClient = new ApolloClient({

In the `httpLink`, replace `myapp.herokuapp.com` with your own Heroku URL of Hasura GraphQL Engine.

- We have defined the graphql query for fetching author list in `src/layouts/MyLayout.vue`.
- We have defined the graphql query for fetching author list in `src/layouts/MyLayout.vue`.
- GraphQL query

```graphql
Expand Down
6 changes: 3 additions & 3 deletions community/sample-apps/react-relay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ This app demonstrates pagination using Hasura with Relay. It's for demo purposes
- columns: `id`, `body`, `created_at`, `restaurant_id`
- `restaurants`
- columns: `id`, `name`, `cuisine`
- Create a [one-to-many relationship](https://hasura.io/docs/1.0/graphql/manual/schema/relationships/database-modelling/one-to-many.html) between the tables.
- Create a [one-to-many relationship](https://hasura.io/docs/latest/graphql/core/schema/relationships/database-modelling/one-to-many.html) between the tables.
- Using the Hasura console, add some rows to both tables. Add at least four reviews since the sample code loads three reviews at a time.
- Using your Relay endpoint from Hasura (`/v1beta1/relay`), export your GraphQL schema by following the instructions [here](https://hasura.io/docs/1.0/graphql/manual/schema/export-graphql-schema.html) (to replace `schema.graphql` at the root of this project).
- Using your Relay endpoint from Hasura (`/v1beta1/relay`), export your GraphQL schema by following the instructions [here](https://hasura.io/docs/latest/graphql/core/schema/export-graphql-schema.html) (to replace `schema.graphql` at the root of this project).
- In `fetchGraphQL.js`, set the GraphQL endpoint to your Relay endpoint.
- In `App.js`, replace `MY_RESTAURANT_ID` with a restaurant `id` from your database (This is for demo purposes; normally you'd pass in the `id` via routing).
- In your Terminal, at the root of the app:
Expand All @@ -21,4 +21,4 @@ This app demonstrates pagination using Hasura with Relay. It's for demo purposes
- Open [http://localhost:3000](http://localhost:3000) to view the app in your browser.
- Click the `Load More` button to load more reviews.

For more information on Hasura's Relay API, see the [Hasura docs](https://hasura.io/docs/1.0/graphql/manual/schema/relay-schema.html).
For more information on Hasura's Relay API, see the [Hasura docs](https://hasura.io/docs/latest/graphql/core/schema/relay-schema.html).
Loading

0 comments on commit 0ff2610

Please sign in to comment.