Skip to content

Commit

Permalink
Merge pull request supabase#6528 from rustamd/patch-1
Browse files Browse the repository at this point in the history
Fix grapqhl -> graphql typo
  • Loading branch information
kiwicopple authored Apr 25, 2022
2 parents c36036c + 16b5161 commit 63edfac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/docs/guides/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ values={[

#### GraphQL

The GraphQL Endpoint that we provide (`https://<project_ref>.supabase.co/rest/v1`) is compatible with any GraphiQL implementation that can pass an `apikey` header.
The GraphQL Endpoint that we provide (`https://<project_ref>.supabase.co/graphql/v1`) is compatible with any GraphiQL implementation that can pass an `apikey` header.
Some suggested applications:

- [paw.cloud](https://paw.cloud)
Expand Down Expand Up @@ -262,7 +262,7 @@ const headers = {
// Create GraphQL client
// See: https://formidable.com/open-source/urql/docs/basics/react-preact/#setting-up-the-client
const client = createClient({
url: '<SUPABASE_URL>/grapqhl/v1',
url: '<SUPABASE_URL>/graphql/v1',
fetchOptions: function createFetchOptions() {
return { headers }
},
Expand Down Expand Up @@ -295,8 +295,8 @@ const { data, fetching, error } = result
<TabItem value="cURL">

```bash
# Append /grapqhl/v1/ to your URL, and then use the table name as the route
curl --request POST '<SUPABASE_URL>/grapqhl/v1' \
# Append /graphql/v1/ to your URL, and then use the table name as the route
curl --request POST '<SUPABASE_URL>/graphql/v1' \
-H 'apikey: <SUPABASE_ANON_KEY>' \
-H 'Authorization: Bearer <SUPABASE_ANON_KEY>' \
-d '{ "query":"{ todos(first: 3) { edges { node { id } } } }" }'
Expand Down

0 comments on commit 63edfac

Please sign in to comment.