Getting started with GraphQL and Node.js

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.

Tutorial Promo

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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s