Introduction
GraphQL lets you ask for exactly the data you want from a database in a simple way.
query {
fieldName {
subField1
subField2
}
}query {
user {
name
email
}
}query {
book {
title
author {
name
}
}
}query {
products {
id
price
}
}query {
employee {
id
firstName
lastName
}
}query { book { title author { name } } }query { user { id name, } }Pass the test and this pattern moves unknown