In this tutorial we look at how we can work with GraphQL. GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. In the tutorial we setup a server using node.js we then run queries against it with express-graphql. We create a test database with test data so we could query our database with GraphQL.
Some of the topics we look at are listed below.
- Setting up our server
- Creating a GraphQL Schema
- Creating a GraphQLObject Type
- Running Queries
- Getting User by id
- Working with aliases
- Adding query limits
- Introspection
- Sub Queries
- Arguments
- Adding data with mutations
- Adding and deleting a user