gatsby-source-fauna

1.0.5 • Public • Published

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" }],
      },
    },
    //...
  ],
}

Readme

Keywords

none

Package Sidebar

Install

npm i gatsby-source-fauna

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

7.68 kB

Total Files

5

Last publish

Collaborators

  • groenlid