Slide 21
Slide 21 text
POST /graphql
query postQuery {
post(id: 1) {
id
title
body
author
comments {
text
by
}
}
}
{
"data": {
"post": {
"id": 1,
"title": "Hello World",
"body": "First post!”,
"author": "Ryan Bigg",
"comments": [
{
text: "Great first post!",
by: "Totally not Ryan"
},
...
]
}
}
}
Query Response
GRAPHQL