GitHunt
MA

marktani/graphql-gateway-example

This example illustrates the usage of the GraphQL Gateway pattern with graphql.js and Graphcool.

GraphQL Airbnb Example

This example illustrates the usage of the GraphQL Gateway pattern with graphql.js and Graphcool.

Getting Started

Initializing the Graphcool Database Service

cd database
gc deploy # copy the service id into the `GRAPHCOOL_SERVICE_ID` env var in .envrc
gc root-token main # put the root token into the `GRAPHCOOL_TOKEN` env var in .envrc

Starting the Gateway

yarn install
yarn start
# Open http://localhost:4000/

Seeding some data

Look in querie/seed.graphql to seed some data.

Booking flow

Look in queries/booking.graphql to see the booking flow.

License

MIT

Languages

TypeScript100.0%

Contributors

Created November 20, 2017
Updated September 24, 2019
marktani/graphql-gateway-example | GitHunt