Direto ao ponto!
Resources:
Queries to support
# List users
{
users {
name
address {
city
}
posts {
id
title
comments {
content
}
}
}
}
# Get single user
{
user(id: 5) {
name
address {
city
}
posts {
id
title
comments {
content
}
}
}
}
# Create user
mutation ($user: UserInput) {
createUser(user: $user){
id
}
}
{
"user": {
"name": "Doug",
"email": "doug@testing.com",
"birthday":"1988-05-17",
"address":{
"street": "",
"city": "Floripa",
"state": "SC"
}
}
}