Skip to content

Instantly share code, notes, and snippets.

@leeliwei930
Created April 1, 2021 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leeliwei930/2e15381fabdd8d36182f9271f8172cb1 to your computer and use it in GitHub Desktop.
Save leeliwei930/2e15381fabdd8d36182f9271f8172cb1 to your computer and use it in GitHub Desktop.
GraphQL Basic and Laravel Integration Part 1 - Understanding GraphQL
// https://api.tedious.dev/api/books?fields=id,title,isbn&includes=authors.name&order_by=id&sort=asc
{
"data" : [
{
"id" : "1",
"title" : "Steve Jobs",
"isbn" : "xxxxxx",
"authors" : [{
"name" : "Walter Issacons"
}]
},
{
"id" : "2",
"title" : "Billion Dollar Whale",
"isbn" : "xxxxxx",
"author" : [
{ "name" : "Tom Wright" },
{"name" : "Bradley Hope" },
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment