skip to content
Blog post cover art for Edge GraphQL with Cloudflare Workers
Blog post

Edge GraphQL with Cloudflare Workers

Learn how to build and deploy a GraphQL server on the edge with Apollo GraphQL, Cloudflare Workers, Webpack, and Wrangler

Open .md

All of this project's code can be found in the First Look monorepo on my GitHub.

Introduction

Generate Project

bash
wrangler generate my-graphql-server https://github.com/signalnerve/workers-graphql-server

Set Account ID in Wrangler Configuration

toml
name = "workers-graphql-server" type = "webpack" zone_id = "" account_id = "" route = "" workers_dev = true webpack_config = "webpack.config.js"

Deploy to Cloudflare

bash
cd my-graphql-server wrangler publish
text
✨ Built successfully, built project size is 560 KiB. ✨ Successfully published your script to https://workers-graphql-server.anthonycampolo.workers.dev

01 - pokemon-graphql

On this pageJump to section