This is a demonstration of graph-client deployed on Cloudflare Workers. This API uses
response caching plugin from GraphQL Mesh
which helps reduce the calls to the origin server. A
Cloudflare KV store is used as a store for
storing the cached responses.
- Clone this repository
- Install all the dependencies using
pnpm install - Login to your Cloudflare account using
pnpm wrangler login - Create a KV namespace using
pnpm wrangler kv:namespace create "MaverickSubgraph"and update thewrangler.tomlfile with the KV namespace ID - Build the project using
pnpm build - Deploy the project using
pnpm run deploy