Gatsby source plugin

https://www.gatsbyjs.org/packages/gatsby-source-graphql

Please help to configurate gatsby source plugin to consume squidex data via graphql backpoint
Thanks

I have never used it, but it looks like it could be something like:

{
      resolve: "gatsby-source-graphql",
      options: {
        typeName: "Squidex",  // No idea what this is
        fieldName: "squidex",   // No idea what this is
        // Url to query from
        url: "https://cloud.squidex.io/api/content/<ENTER APP NAME>/graphql",
        // HTTP headers
        headers: {
          Authorization: `bearer <ENTER TOKEN HERE>`,
        },
        // Additional options to pass to node-fetch
        fetchOptions: {},
      }
}

Strightforward test is OK -connection established and data is fetched :grinning:
Thank you Sebastian

1 Like

I realize this has been a while. Could you share the details of your solution? I’m having issues establishing my connection to squidex via gatsby-source-squidex.