Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zth/graphql-client-example-server
A simple GraphQL server for powering examples of various GraphQL clients in various languages.
https://github.com/zth/graphql-client-example-server
apollo graphql relay urql
Last synced: 17 days ago
JSON representation
A simple GraphQL server for powering examples of various GraphQL clients in various languages.
- Host: GitHub
- URL: https://github.com/zth/graphql-client-example-server
- Owner: zth
- Created: 2019-10-22T11:37:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T00:09:42.000Z (over 1 year ago)
- Last Synced: 2024-10-03T12:48:00.132Z (about 1 month ago)
- Topics: apollo, graphql, relay, urql
- Language: TypeScript
- Size: 117 KB
- Stars: 34
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-list - graphql-client-example-server
README
# 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
- [x] Node interface (for Relay)
- [x] Globally unique IDs
- [x] Database IDs
- [x] Connection-based pagination
- [x] Limit/offset-based pagination
- [x] Mutations
- [x] Enums
- [x] Custom scalars
- [x] Unions
- [x] Subscriptions
- [x] Defer/stream
- [x] Artifical delay's to emphasize defer/stream