Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

gatsbyjs shop flotiq

// in your gatsby-config.js in root of the project
require('dotenv').config();

module.exports = {
  // ...
  plugins: [
    {
      resolve: "gatsby-source-flotiq",		  
        options: {
            baseUrl: process.env.GATSBY_FLOTIQ_BASE_URL,
            authToken: process.env.GATSBY_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 total number of objects downloaded for every type
            singleFetchLimit: 1000, //optional, limit the number of objects downloaded in single api call. Min: 1, Max 5000, Default 1000
            maxConcurrentDataDownloads: 10, //optional, limit the number of concurrent api calls. Default: 10, Min: 1, Max: 50
            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
            downloadMediaFile: false //optional, should media files be cached and be available for gatsby-image and gatsby-sharp
        },
    },
  ],
  // ...
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: what is steal.js 
Javascript :: change windlow location relitave to current one 
Javascript :: basketball socket io 
Javascript :: unable to add class in jsx 
Javascript :: rfc 7230 
Javascript :: langenderferc@gmail.com 
Javascript :: No matching version found for swagger-jsdoc@^6.0.0. 
Javascript :: sample of jstree ajax call code farm 
Javascript :: check textbox value on ng-change value == in angular 
Javascript :: angular sanitize vs validators 
Javascript :: react steam auth 
Javascript :: laravel datables get next input jquery next 
Javascript :: deny ready jquery 
Javascript :: javascript loop exec function 
Javascript :: javascript date calculations ignore weekends 
Javascript :: arrow function component react shortcut vscode 
Javascript :: create react app theme_color 
Javascript :: How to send JSON Web Token (JWT Token) as header with Postman and golang 
Javascript :: adjust() js 
Javascript :: lemon get node from id 
Javascript :: js hangman with repeated characters 
Javascript :: keyup.enter will work in mac 
Javascript :: ar.js getting started 
Javascript :: ajouter un lien href dans du javascript 
Javascript :: tableau javascript 
Javascript :: overlapping times javascripts html django 
Javascript :: send props from one component to another on button click 
Javascript :: jasmine compare arrays 
Javascript :: devexpress winforms get readonly colour for current themes 
Javascript :: jquery post data into an iframe from textarea live 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =