Skip to content

Commit

Permalink
update file name
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Nov 4, 2023
1 parent 8013b0e commit 4406dae
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions docs/getting_started/test.mdx → docs/getting_started/execute.mdx
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
---
title: Test
title: Execute
sidebar_position: 4
---

Let's try the following query, to get all the users and the title of each post of each user.
1. Open a web browser and go to [http://localhost:8000](http://localhost:8000). This should load the GraphiQL interface.
2. In the query editor of GraphiQL, enter the following query

```graphql showLineNumbers
query {
users {
id
name
posts {
title
}
}
}
```
```graphql showLineNumbers
query {
users {
id
name
posts {
title
}
}
}
```

You should see output like the following:
After running the query in GraphiQL, expect to see a JSON response structured like this:

```json showLineNumbers
{
Expand All @@ -29,8 +30,8 @@ You should see output like the following:
"posts": [
{
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit"
},
...
}
// Additional posts truncated for brevity
]
},
{
Expand All @@ -42,10 +43,11 @@ You should see output like the following:
},
{
"title": "in quibusdam tempore odit est dolorem"
},
...
}
// Additional posts truncated for brevity
]
}
// Additional users truncated for brevity
]
}
}
Expand Down

0 comments on commit 4406dae

Please sign in to comment.