GraphQL Server Deep Dive dives into the basic parts of a GraphQL server implementation. It provides examples of a few tools and conventions that are important for teams to be aware of when building complex GraphQL APIs.
- Schema - A type system defined for your data. This acts as a contract for a type system defined for your data. This represents a contract of what information is exposed to the API consumer.
- Resolvers - A set of functions defined for each type. These functions are called when types are requested and validated against the schema.
- A dive into SDL-first and Code-first development.
- SDL-first example
- Code-first example with GraphQL Nexus
- A quick look at how to manage a microservice or service oriented architecture
- Schema Stitching
- Apollo Federation example
Provided by the folks at Thoughtbot, this diagram explains the lifecycle of a GraphQL request and server response.
-
Change
index.ts
file to point at your preferred schema object. Comment out other schema imports or comment outapolloServer
and uncommentgateway
to explore Schema Federation -
Run
yarn && yarn start
in root -
Go to http://localhost:4000 to query Playground
Made with ❤️ by Novvum