Queries
Every GraphQL service has a query type and may or may not have a mutation type
Understanding how a query works
query {
hero {
name
appearsIn
}
}
- We query the special root Query type, and get back an object
- We select the hero field on that object
- For the object returned by hero, we select the name and appearsIn fields
Backlinks