Skip to content

Latest commit

 

History

History

client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Client-side GraphQL Example App

This folder covers the client-side portion of the GraphQL demonstration, built with Apollo Client and compiled via Create React App.

Setup

yarn install
yarn start

The UI is split across a few different routes. In the below, we're using GraphQL to communicate with our local server's database, and using mutations to add new records which we can then retrieve via a query:

Screen Shot 2019-12-27 at 8 59 53 PM

And this route shows how we can easily incorporate calls to external service endpoints -- in this case Penguin's public REST API -- into our schema:

Screen Shot 2019-12-27 at 9 02 24 PM

Additionally, this application demos some common UI / dev patterns, such as