{"repo":"cloudflare/workers-graphql-server","free":true,"listed":false,"github":"https://github.com/cloudflare/workers-graphql-server","clone":"git clone https://github.com/cloudflare/workers-graphql-server.git","description":"🔥Lightning-fast, globally distributed Apollo GraphQL server, deployed at the edge using Cloudflare Workers","language":"TypeScript","stars":792,"topics":["serverless","graphql","apollo","cloudflare-workers"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"workers-graphql-server An Apollo GraphQL server, built with Cloudflare Workers. Whether you host your APIs on-prem, in the cloud, or you're deploying databases to Cloudflare directly, you can deploy a globally distributed GraphQL server with Cloudflare Workers. Setup Begin by cloning this repo and installing the dependencies: You can begin running the project locally by running npm run dev . You'll need to configure your project's wrangler.toml file to prepare your project for deployment. See the \"Configuration\" docs for a guide on how to do this. Usage The source for this project shows how to make requests to external APIs, using the PokeAPI as an example. You can run an example query to ensure it works after deployment: Resolvers are defined in src/resolvers.ts . You can also use Service Bindings to connect to other Workers services, and use them inside your resolvers. If you change your GraphQL schema at src/schema.graphql , you'll need to run npm run codegen to update the generated types in src/generated/graphql.ts . This ensures that you can correctly import and type your resolvers. Configuration You can optionally configure your graphQLOptions object in src/index.js : Base endpoint Make requests to your GraphQL server by sending POST requests to the baseEndpoint (e.g. graphql-on-workers.signalnerve.com/ ). Sandbox By default, the Apollo Sandbox is enabled. This allows you to test your GraphQL in a web GUI without needing to write any client code. Origin forwarding If yo","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudflare","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudflare/workers-graphql-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}