{"record":{"id":"101e82fb5ca4fef9","repo":"gatsbyjs/gatsby","slug":"pluginoptions-schema-querydepth-is-not-a-positiv","errorCode":null,"errorMessage":"\n\npluginOptions.schema.queryDepth is not a positive integer.\nUsing default value in place of provided value.\n","messagePattern":"\n\npluginOptions\\.schema\\.queryDepth is not a positive integer\\.\nUsing default value in place of provided value\\.\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts","lineNumber":69,"sourceCode":"      helpers.reporter.panic(\n        formatLogMessage(\n          `PluginOptions.type.MediaItem.limit is an disallowed plugin option.\\nPlease remove the MediaItem.limit option from gatsby-config.js (currently set to ${userPluginOptions?.type?.MediaItem?.limit})\\n\\nMediaItem nodes are automatically limited to 0 and then fetched only when referenced by other node types. For example as a featured image, in custom fields, or in post_content.`\n        )\n      )\n    },\n  },\n  {\n    name: `queryDepth-is-not-a-positive-int`,\n    test: ({ userPluginOptions }: IProcessorOptions): boolean =>\n      typeof userPluginOptions?.schema?.queryDepth !== `undefined` &&\n      (!isInteger(userPluginOptions?.schema?.queryDepth) ||\n        userPluginOptions?.schema?.queryDepth <= 0),\n    processor: ({\n      helpers,\n      userPluginOptions,\n    }: IProcessorOptions): IPluginOptions => {\n      helpers.reporter.log(``)\n      helpers.reporter.warn(\n        formatLogMessage(\n          `\\n\\npluginOptions.schema.queryDepth is not a positive integer.\\nUsing default value in place of provided value.\\n`,\n          { useVerboseStyle: true }\n        )\n      )\n\n      delete userPluginOptions.schema.queryDepth\n\n      return userPluginOptions\n    },\n  },\n  {\n    name: `Require beforeChangeNode type setting functions by absolute or relative path`,\n    test: ({ userPluginOptions }: IProcessorOptions): boolean =>\n      !!userPluginOptions?.type,\n    processor: ({\n      helpers,\n      userPluginOptions,","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts#L51-L87","documentation":"The queryDepth-is-not-a-positive-int options processor fires when pluginOptions.schema.queryDepth is not a positive integer (wrong type, zero, or negative). The plugin rejects the value and silently falls back to its default query depth; the warning tells the user their configured value was ignored, so they may see shallower data than intended.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set schema.queryDepth in gatsby-config.js to a positive integer (e.g. 5 or 10).","Remove the option entirely to use the plugin default.","Beware of very large depths — higher values exponentially increase the amount of sourced data."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}