Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

darrellwarde/graphql-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published