From 817a862edaa190aed9cfac40b5076ee8eb30c898 Mon Sep 17 00:00:00 2001 From: xpetit <32063953+xpetit@users.noreply.github.com> Date: Mon, 24 May 2021 13:50:11 +0200 Subject: [PATCH] Fix typo --- subjects/graphql/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/graphql/README.md b/subjects/graphql/README.md index ba9c88081..365421fb9 100644 --- a/subjects/graphql/README.md +++ b/subjects/graphql/README.md @@ -130,7 +130,7 @@ you could just add this attribute to the query, example: You can try to `curl` the API endpoint to see the result given by the server: -- `curl "https://[[DOMANIN]]/api/graphql-engine/v1/graphql" --data '{"query":"{user{id login}}"}'` +- `curl "https://[[DOMAIN]]/api/graphql-engine/v1/graphql" --data '{"query":"{user{id login}}"}'` Here is another example of a query using the table `user`: @@ -150,7 +150,7 @@ Here is another example of a query using the table `user`: You can see the result using `curl`: -- `curl "https://[[DOMANIN]]/api/graphql-engine/v1/graphql" --data '{"query":"{user(where:{id:{_eq:6}}){id login}}"}'` +- `curl "https://[[DOMAIN]]/api/graphql-engine/v1/graphql" --data '{"query":"{user(where:{id:{_eq:6}}){id login}}"}'` In graphQL the usage of arguments can be specified in the schema of the API. Like said above you can visit the _docs_ for the graphQL endpoint, _https://[[DOMAIN]]/public/subjects/grapqhl_