hygraph / gatsby-source-graphcms

The official Gatsby source plugin for GraphCMS projects
https://graphcms.com
MIT License
145 stars 41 forks source link

concurrency error #223

Closed luciobenini closed 2 years ago

luciobenini commented 2 years ago

When setting concurrency I get an error:

"gatsby-source-graphcms" threw an error while running the createSchemaCustomization lifecycle:

Expected `concurrency` to be a number from 1 and up, got `undefined` (undefined)

  219 |     gatsbyApi,
  220 |     schema,
> 221 |     execute: wrapQueryExecutorWithQueue(execute, {
      |              ^
  222 |       concurrency: queryConcurrency,
  223 |     }),
  224 |     gatsbyTypePrefix: typePrefix,

File: node_modules\gatsby-source-graphcms\src\gatsby-node.js:221:14
notrab commented 2 years ago

Hey @luciobenini , have you tried passing queryConcurrency as this was changed in the latest version?

luciobenini commented 2 years ago

@notrab You're right. The change appears in a -next.x.