Build and Deploy a GraphQL API to the Edge with Fauna โ Part 2


Fauna is perfect for creating databases and databases inside of databases where you require multi-tenant support for building and scaling applications.
We'll be using a single database in this guide as well as the UI for creating a database and collection but everything you see below can be done using Fauna's FQL syntax.
You'll need to sign up for a Fauna account, create a database, a products collection, and obtain an API key.
Create a new database
Create a product collection
Create a database key (Security > Database Keys > New Key)
Copy the key
Add the key to
grafbase/.env
:FAUNA_SECRET=
That's it! We have a Fauna database and collection we can now connect to from inside Grafbase Resolvers. We'll do that next.
Subscribe to my newsletter
Read articles from Jamie Barton directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
