Narnia Produced Magic

    gatsby-source-flotiq

    2.0.0 • Public • Published

    gatsby-source-flotiq

    Source plugin for pulling data from Flotiq into Gatsby websites.

    Get up and running in minutes with a starter project:

    Table of contents

    Install

    npm install --save https://github.com/flotiq/gatsby-source-flotiq
    // in your gatsby-config.js
    module.exports = {
      // ...
      plugins: [
        {
          resolve: "gatsby-source-flotiq",		  
            options: {
                baseUrl: process.env.GATSBY_FLOTIQ_BASE_URL,
                authToken: process.env.FLOTIQ_API_KEY,
                forceReload: false, //(optional)
                includeTypes: ['contettype1', 'contettype2', ... ], //(optional) List of used contenttypes identified by API Name. If ommitted, all content types will be synchronized. Make sure to include all referenced content types as well
                objectLimit: 100000, //optional, limit number of objects for every type
                timeout: 5000, //optional
                resolveMissingRelations: true //optional, if the limit of objects is small some of the objects in relations could not be obtained from server, it this option is true they will be obtained as the graphQL queries in project would be resolved, if false, the missing object would resolve to null
            },
        },
      ],
      // ...
    }

    At this point you should have added Content Type Definitions required by template you chosen.

    Install

    npm i gatsby-source-flotiq@2.0.0

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    15.5 kB

    Total Files

    10

    Last publish

    Collaborators

    • flotiq