5 Implementing schema resolvers
This chapter covers
- Using Node.js drivers for PostgreSQL and MongoDB
- Using an interface to communicate with a GraphQL service
- Making a GraphQL schema executable
- Creating custom object types and handling errors
In the previous chapter, we designed the structure of the GraphQL API schema and came up with its full SDL text. In chapters 5-8, we are going to make that schema executable. We’ll use Node.js database drivers and the GraphQL.js implementation to expose the entities in the databases by using resolver functions.
5.1 Running the development environment
To let you focus on the GraphQL skills in this book’s project, I prepared a Git repository that contains all the non-GraphQL things that you need to follow ...
Get GraphQL in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.