Introduction to GraphQL
July 18, 2022
Schema:
- Schema is broken up into query types and mutation types (these are treated at the endpoints).
Types:
- Types make up everything. Query types and mutation types are at the outer level, with nested types being possible. Types are made up of fields that are strongly typed. Non-required fields are prefixed with an exclamation point (
!
).
Resolvers:
- Resolvers handle all logic. They must not contain side effects, child selections must wait for parent selections to return and all of this may be done in parallel.