Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 767 Bytes

File metadata and controls

12 lines (9 loc) · 767 Bytes

Grafbase ⨯ MongoDB

This example shows how to create a Grafbase resolver that can execute read and write operations with a MongoDB database — Read the guide

Getting Started

  1. Run npx degit grafbase/grafbase/examples/resolvers-mongodb grafbase-with-resolvers-mongodb to clone this example
  2. Change directory into the new folder cd grafbase-with-resolvers-mongodb
  3. Run cp grafbase/.env.example grafbase/.env
  4. Open grafbase/.env in your code editor and provide your MongoDB Data API URL and Key
  5. Run npx grafbase dev to start local dev server with your schema
  6. Open Pathfinder