Tutorial: https://www.apollographql.com/docs/apollo-server/getting-started
npm start
visit: http://localhost:4000/
query GetUser($id: ID!) {
user(id: $id) {
id
name
}
books {
title
author
}
numberSeven
numberSix
}
Variables
{
"id": "1"
}
Response
{
"data": {
"user": {
"id": "1",
"name": "Elizabeth Bennet"
},
"books": [
{
"title": "The Awakening",
"author": "Kate Chopin"
},
{
"title": "City of Glass",
"author": "Paul Auster"
}
],
"numberSeven": 7,
"numberSix": 6
}
}