DEV Community

Cover image for Edge GraphQL with Cloudflare Workers
ajcwebdev
ajcwebdev

Posted on • Updated on • Originally published at ajcwebdev.com

Edge GraphQL with Cloudflare Workers

Outline

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

Introduction

Generate Project

wrangler generate my-graphql-server https://github.com/signalnerve/workers-graphql-server
Enter fullscreen mode Exit fullscreen mode

Set Account ID in Wrangler Configuration

name = "workers-graphql-server"
type = "webpack"
zone_id = ""
account_id = ""
route = ""
workers_dev = true
webpack_config = "webpack.config.js"
Enter fullscreen mode Exit fullscreen mode

Deploy to Cloudflare

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

01-pokemon-graphql

Top comments (0)