- A
!
indicates that a field cannot be null. - graphql will cast any value passed to what it expects as specified in the type definitions.
Query
is for stuff you can read. Think ofGET
in rest apis. AMutation
on the other hand acts like a PUT, POST & DELETE requests.- Resolvers can also be asynchronous & return promises