Update api.mdx

This commit is contained in:
rustamd authored and GitHub committed 2022-04-22 07:40:46 -04:00
1 parent 0b35ac52be
commit 16b5161ddf
1 file changed
+3 -3
+3 -3
View File
@@ -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)
@@ -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 } } } }" }'