darrellwarde / graphql-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL Demo

A small demo project to walkthrough building a GraphQL schema around some existing data and writing your first mutation, as well as to demonstrate schema stitching.

This repository contains two small services:

  • users: A service containing the details of users stored in an array
  • posts: A service containing the details of posts stored in an array

This project at the top-level contains a service which will stitch together these two services to offer a view across the two entity types with links inbetween them.

Installation

At the top-level, the schema stitching gateway can be installed using npm.

npm install

Usage

Once the users and posts APIs are up and running, you can start this server using npm.

npm start

You can then navigate to http://localhost:4002/ to access the GraphQL Playground hosted by this service.

Working through the demo

The master branch contains the solution to the demo which was reached by the end of the presentation.

If you wish to work through these steps yourself, please checkout the develop branch for a blank slate.

About


Languages

Language:JavaScript 100.0%