You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`endpoint`| String (**required**) | The endpoint URL for the GraphCMS project. This can be found in the [project settings UI](https://graphcms.com/docs/guides/concepts/apis#working-with-apis). |
75
75
|`token`| String | If your GraphCMS project is **not** publicly accessible, you will need to provide a [Permanent Auth Token](https://graphcms.com/docs/reference/authorization) to correctly authorize with the API. You can learn more about creating and managing API tokens [here](https://graphcms.com/docs/guides/concepts/apis#working-with-apis). |
76
-
|`typePrefix`| String _(Default: `GraphCMS_`)_| The string by which every generated type name is prefixed with. For example, a type of `Post` in GraphCMS would become `GraphCMS_Post` by default. If using multiple instances of the source plugin, you **must** provide a value here to prevent type conflicts. |
76
+
|`typePrefix`| String _(Default: `GraphCMS_`)\_| The string by which every generated type name is prefixed with. For example, a type of `Post` in GraphCMS would become `GraphCMS_Post` by default. If using multiple instances of the source plugin, you **must** provide a value here to prevent type conflicts. |
77
77
|`downloadLocalImages`| Boolean _(Default: `false`)_| Download and cache GraphCMS image assets in your Gatsby project. [Learn more](#downloading-local-image-assets). |
78
78
|`buildMarkdownNodes`| Boolean _(Default: `false`)_| Build markdown nodes for all [`RichText`](https://graphcms.com/docs/reference/fields/rich-text) fields in your GraphCMS schema. [Learn more](#using-markdown-nodes). |
79
79
|`fragmentsPath`| String _(Default: `graphcms-fragments`)_| The local project path where generated query fragments are saved. This is relative to your current working directory. If using multiple instances of the source plugin, you **must** provide a value here to prevent type and/or fragment conflicts. |
80
80
|`locales`| String _(Default: `['en']`)_| An array of locale key strings from your GraphCMS project. [Learn more](#querying-localised-nodes). You can read more about working with localisation in GraphCMS [here](https://graphcms.com/docs/guides/concepts/i18n). |
81
81
|`stages`| String _(Default: `['PUBLISHED']`)_| An array of Content Stages from your GraphCMS project. [Learn more](#querying-from-content-stages). You can read more about using Content Stages [here](https://graphcms.com/guides/working-with-content-stages). |
82
+
|`queryConcurrency`| Integer _(Default: 10)_| The number of promises ran at once when executing queries. |
82
83
83
84
## Features
84
85
@@ -190,7 +191,7 @@ Use the `gatsbyImageData` resolver on your `GraphCMS_Asset` nodes.
190
191
|`quality`| Int | The default image quality generated. This is overridden by any format-specific options. |
191
192
|`sizes`| String |[The `<img> sizes` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes), passed to the img tag. This describes the display size of the image, and does not affect generated images. You are only likely to need to change this if your are using full width images that do not span the full width of the screen. |
192
193
|`width`| Int | Change the size of the image. |
193
-
|`placeholder`|`NONE`/`BLURRED`/`DOMINANT_COLOR`/`TRACED_SVG`| Choose the style of temporary image shown while the full image loads. |
194
+
|`placeholder`|`NONE`/`BLURRED`/`DOMINANT_COLOR`/`TRACED_SVG`| Choose the style of temporary image shown while the full image loads. |
194
195
195
196
**NOTE**: `gatsby-plugin-sharp` needs to be listed as a dependency on your project if you plan to use placeholder `TRACED_SVG` or `DOMINANT_COLOR`.
196
197
@@ -359,13 +360,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
359
360
<details>
360
361
<summary>"endpoint" is required</summary>
361
362
362
-
If you are using environment variables, make sure to include `require("dotenv").config();` inside your `gatsby-config.js`.
363
-
364
-
If it's already included, make sure you have your ENV variable added to `.env`, or `.env.local` without spaces.
363
+
If you are using environment variables, make sure to include `require("dotenv").config();` inside your `gatsby-config.js`.
364
+
365
+
If it's already included, make sure you have your ENV variable added to `.env`, or `.env.local` without spaces.
366
+
365
367
</details>
366
368
367
369
<details>
368
370
<summary>"message": "not allowed"</summary>
369
371
370
-
This error occurs most likely if your token doesn't have access to the `PUBLISHED` content stage. Configure your token to also access `PUBLISHED`, or specify `stages: ["DRAFT"]` to the options inside `gatsby-config.js`.
372
+
This error occurs most likely if your token doesn't have access to the `PUBLISHED` content stage. Configure your token to also access `PUBLISHED`, or specify `stages: ["DRAFT"]` to the options inside `gatsby-config.js`.
Copy file name to clipboardExpand all lines: gatsby-source-graphcms/src/gatsby-node.js
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -69,12 +69,17 @@ export function pluginOptionsSchema({ Joi }) {
69
69
`The string by which every generated type name is prefixed with. For example, a type of Post in GraphCMS would become GraphCMS_Post by default. If using multiple instances of the source plugin, you **must** provide a value here to prevent type conflicts`
70
70
)
71
71
.default(`GraphCMS_`),
72
+
concurrency: Joi.number()
73
+
.integer()
74
+
.min(1)
75
+
.default(10)
76
+
.description(`The number of promises to run at one time.`),
0 commit comments