GraphQL
Mike Peat, Unicorn InterGlobal, UK
How I got here
Where did GraphQL come from?
What does REST being clumsy mean?
So how does it work?
What does it look like?
Sample Query
Sample Response
{
user(id: 4) {
fullname
}
}
{
"user": {
"fullname": "Mike Peat"
}
}
Asking for a bit more
Sample Query
Sample Response
{
user(id: 4) {
loginName
fullname
password
rights
lastLogin
}
{
"user": {
"loginName": "Mike",
"fullname": "Mike Peat",
"password": "foo",
"rights": 1,
"lastLogin": "14/12/2022"
}
}
DEMO
How far have I got with GraphQL?
Bottom up
So why GraphQL?
Thank you!
Are there any questions?