Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloudflare/workers-graphql-gateway-example
GraphQL running on Cloudflare Workers
https://github.com/cloudflare/workers-graphql-gateway-example
cloudflare cloudflare-workers dataloader graphql
Last synced: 2 months ago
JSON representation
GraphQL running on Cloudflare Workers
- Host: GitHub
- URL: https://github.com/cloudflare/workers-graphql-gateway-example
- Owner: cloudflare
- License: bsd-3-clause
- Created: 2018-08-24T16:53:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-25T22:41:08.000Z (3 months ago)
- Last Synced: 2024-10-03T21:41:18.981Z (2 months ago)
- Topics: cloudflare, cloudflare-workers, dataloader, graphql
- Language: JavaScript
- Homepage: https://cloudflaregraphql.com
- Size: 746 KB
- Stars: 80
- Watchers: 6
- Forks: 6
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - workers-graphql-gateway-example
README
![Cloudflare GraphQL Gateway](https://www.cloudflare.com/img/products/cloudflare-workers/workers-api-responses.png)
Workers GraphQL Gateway Example
====
Building a GraphQL Gateway allows you to make a single query, have GraphQL and take care of breaking it down to multiple rest calls. This example makes use of [dataloader](https://github.com/facebook/dataloader) to batch and cache the queries so a query with the same key will not be requested twice.### Dependencies
- [npm](https://www.npmjs.com/get-npm) or [yarn](https://yarnpkg.com/en/docs/install#debian-stable)### Instructions
- `npm install`
- `npm run build`To open the Workers preview with the built Worker:
- `npm run preview`
### About
[Cloudflare Workers](http://developers.cloudflare.com/workers/) allow you to write JavaScript which runs on all of Cloudflare's
150+ global data centers.[GraphQL](https://graphql.org) provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.