Issue syncing Airtable data with Gatsby GraphQL to Algolia using the plugin

Using Gatsby, I try syncing Airtable data with Algolia via GraphQL but the plugin does not update the index during build. Revised config below:

const sampleQuery = `{
  allContent {
    nodes { uniqueID: id, fileName, url }
  }
}`;

const querySet = [{
  query: sampleQuery,
  transformer: ({ data }) => data.allContent.nodes,
  indexName: 'demoIndex'
}];

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-airtable-custom',
      options: {
        apiKey: process.env.AIRTABLE_API_KEY,
        baseId: process.env.AIRTABLE_BASE_ID,
        table: 'Records'
      }
    },
    {
      resolve: 'gatsby-algolia-sync-plugin',
      options: {
        appId: process.env.ALGOLIA_APP_ID,
        apiKey: process.env.ALGOLIA_API_KEY,
        indexName: 'demoIndex',
        queries: querySet,
        chunkSize: 500000
      }
    }
  ]
};

I encountered a similar scenario while integrating Airtable with Gatsby and Algolia. In my experience, ensuring that the data structure from GraphQL precisely matches what Algolia expects was crucial. I verified the query results and even added debugging logs to confirm that the data was passed correctly from Airtable to the plugin. Checking that the environment variables were correctly set and updating the plugin version to the latest stable release helped resolve the issue. The troubleshooting process involved isolating each step in the data flow, which ultimately led me to pinpoint configuration discrepancies.