{"record":{"id":"3b3afd38db918195","repo":"gatsbyjs/gatsby","slug":"createresolvers-passed-resolvers-for-type-typ","errorCode":null,"errorMessage":"`createResolvers` passed resolvers for type `${typeName}` that doesn't exist in the schema. Use `createTypes` to add the type before adding resolvers.","messagePattern":"`createResolvers` passed resolvers for type `(.+?)` that doesn't exist in the schema\\. Use `createTypes` to add the type before adding resolvers\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby/src/schema/schema.js","lineNumber":962,"sourceCode":"              }\n            } else if (fieldTypeName) {\n              report.warn(\n                `\\`createResolvers\\` passed resolvers for field ` +\n                  `\\`${typeName}.${fieldName}\\` with type \\`${fieldTypeName}\\`. ` +\n                  `Such a field with type \\`${originalTypeName}\\` already exists ` +\n                  `on the type. Use \\`createTypes\\` to override type fields.`\n              )\n            }\n          } else {\n            tc.addFields({\n              [fieldName]: fieldConfig,\n            })\n            // See resetOverriddenThirdPartyTypeFields for explanation\n            tc.setFieldExtension(fieldName, `createdFrom`, `createResolvers`)\n          }\n        })\n      } else if (!ignoreNonexistentTypes) {\n        report.warn(\n          `\\`createResolvers\\` passed resolvers for type \\`${typeName}\\` that ` +\n            `doesn't exist in the schema. Use \\`createTypes\\` to add the type ` +\n            `before adding resolvers.`\n        )\n      }\n    })\n  }\n  await apiRunner(`createResolvers`, {\n    intermediateSchema,\n    createResolvers,\n    traceId: `initial-createResolvers`,\n    parentSpan,\n  })\n}\n\nfunction attachTracingResolver({ schemaComposer }) {\n  schemaComposer.forEach(typeComposer => {\n    if (","sourceCodeStart":944,"sourceCodeEnd":980,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby/src/schema/schema.js#L944-L980","documentation":"Generic guard in createResolvers: the plugin passed a resolver entry for a type name that is not present in the composed schema (the ObjectTypeComposer lookup failed), so the resolver cannot be attached. The input at fault is the `typeName` key in the createResolvers argument.","triggerScenarios":"Thrown at packages/gatsby/src/schema/schema.js:962 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Define the type first with createTypes, then attach resolvers with createResolvers in a later schemaCustomization run","Check the type name spelling against the actual schema (graphql introspection or the printed SDL)","If the type is inferred, ensure the nodes/fields that produce it exist so the type is actually created"],"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-14T05:17:10.506Z"}