This example shows how to create a Grafbase resolver that can execute read and write operations with a MongoDB database — Read the guide
- Run
npx degit grafbase/grafbase/examples/resolvers-mongodb grafbase-with-resolvers-mongodbto clone this example - Change directory into the new folder
cd grafbase-with-resolvers-mongodb - Run
cp grafbase/.env.example grafbase/.env - Open
grafbase/.envin your code editor and provide your MongoDB Data API URL and Key - Run
npx grafbase devto start local dev server with your schema - Open Pathfinder