Skip to content

Multiproject data data source #51

@Simply007

Description

@Simply007

Motivation

Allow users to load data from more than one project.

Proposed solution

Extend a configuration object by the project identification property that would create the project-specific prefix for created Nodes.

Configuration example:

       {
      resolve: `gatsby-source-kentico-cloud`,
      options: {
        project1: {
          deliveryClientConfig: {
            projectId: `firstProjectGuid`,
          },
          languageCodenames: [
            `en-US`,
            `es-ES`,
          ]
        },
        project2: {
          deliveryClientConfig: {
            projectId: `secondProjectId`,
          },
          languageCodenames: [
            `en-US`,
          ]
        }
      }
    }

Possible workaround

Using Kontent Delivery API directly (or using JS SDK) without the GraphQL layer might work as a workaround:
https://www.gatsbyjs.com/docs/how-to/querying-data/using-gatsby-without-graphql/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions