1.0.5 • Published 4 years ago
gatsby-source-fauna v1.0.5
gatsby-source-fauna
Source plugin for pulling data into gatsby from faunadb. Will setup relationships between documents.
module.exports = {
//...
plugins: [
//...
{
resolve: `gatsby-source-fauna`,
options: {
// The secret for the key you're using to connect to your Fauna database.
// You can generate on of these in the "Security" tab of your Fauna Console.
secret: "___YOUR_FAUNADB_SECRET___",
// Array of the collections you want to injest
collections: [{ name: "collection1", tsIndex: "collection1_by_ts" }, { name: "collection2", tsIndex: "collection2_by_ts" }],
},
},
//...
],
}