This examples shows how to create a Grafbase resolver rate limited by the Upstash ratelimit library on the edge — Read the guide
- Run
npx degit grafbase/grafbase/examples/resolvers-upstash-ratelimit grafbase-with-resolvers-upstashto clone this example. - Change directory into the new folder
cd grafbase-with-resolvers-upstash. - Run
cp grafbase/.env.example grafbase/.env. - Open
grafbase/.envin your code editor and provide the environment variables by following the related guide. - Run
npx grafbase devto start local dev server with your schema - Open Pathfinder