zth / graphql-client-example-server

A simple GraphQL server for powering examples of various GraphQL clients in various languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphql-client-example-server

A simple GraphQL server for powering examples of various GraphQL clients in various languages.

Installation

You can install and run the server without needing to clone this repo by doing:

npm install -g graphql-client-example-server

...and then simply running with graphql-client-example-server.

You can also provide a PORT environment variable to control what port the server will run on (default 4000).

Developing

Running

yarn start

Building

yarn && yarn build --watch

// In a separate terminal
yarn start

Features to cover

  • Node interface (for Relay)
  • Globally unique IDs
  • Database IDs
  • Connection-based pagination
  • Limit/offset-based pagination
  • Mutations
  • Enums
  • Custom scalars
  • Unions
  • Subscriptions
  • Defer/stream
  • Artifical delay's to emphasize defer/stream

About

A simple GraphQL server for powering examples of various GraphQL clients in various languages.


Languages

Language:TypeScript 97.5%Language:JavaScript 1.5%Language:Shell 1.1%