{"record":{"id":"dcd3c5838363c526","repo":"gatsbyjs/gatsby","slug":"there-are-conflicting-field-types-in-your-data-i","errorCode":null,"errorMessage":"There are conflicting field types in your data.\n\nIf you have explicitly defined a type for those fields, you can safely ignore this warning message.\nOtherwise, Gatsby will omit those fields from the GraphQL schema.\n\nIf you know all field types in advance, the best strategy is to explicitly define them with the `createTypes` action, and skip inference with the `@dontInfer` directive.\nSee https://www.gatsbyjs.com/docs/actions/#createTypes","messagePattern":"There are conflicting field types in your data\\.\n\nIf you have explicitly defined a type for those fields, you can safely ignore this warning message\\.\nOtherwise, Gatsby will omit those fields from the GraphQL schema\\.\n\nIf you know all field types in advance, the best strategy is to explicitly define them with the `createTypes` action, and skip inference with the `@dontInfer` directive\\.\nSee https://www\\.gatsbyjs\\.com/docs/actions/#createTypes","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby/src/schema/infer/type-conflict-reporter.ts","lineNumber":130,"sourceCode":"  }\n\n  addConflict(selector: string, examples: Array<ITypeConflictExample>): void {\n    if (selector.substring(0, 11) === `SitePlugin.`) {\n      // Don't store and print out type conflicts in plugins.\n      // This is out of user control so he/she can't do anything\n      // to hide those.\n      return\n    }\n\n    const entry = this.getEntryFromSelector(selector)\n    examples\n      .filter(example => example.value != null)\n      .forEach(example => entry.addExample(example))\n  }\n\n  printConflicts(): void {\n    if (this.entries.size > 0) {\n      report.warn(\n        `There are conflicting field types in your data.\\n\\n` +\n          `If you have explicitly defined a type for those fields, you can ` +\n          `safely ignore this warning message.\\n` +\n          `Otherwise, Gatsby will omit those fields from the GraphQL schema.\\n\\n` +\n          `If you know all field types in advance, the best strategy is to ` +\n          `explicitly define them with the \\`createTypes\\` action, and skip ` +\n          `inference with the \\`@dontInfer\\` directive.\\n` +\n          `See https://www.gatsbyjs.com/docs/actions/#createTypes`\n      )\n      this.entries.forEach(entry => entry.printEntry())\n    }\n  }\n\n  getConflicts(): Array<TypeConflictEntry> {\n    return Array.from(this.entries.values())\n  }\n}\n","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby/src/schema/infer/type-conflict-reporter.ts#L112-L148","documentation":"Error \"There are conflicting field types in your data.\n\nIf you have explicitly defined a type for those fields, you can safely ignore this warning message.\nOtherwise, Gatsby will omit those fields from the GraphQL schema.\n\nIf you know all field types in advance, the best strategy is to explicitly define them with the `createTypes` action, and skip inference with the `@dontInfer` directive.\nSee https://www.gatsbyjs.com/docs/actions/#createTypes\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby/src/schema/infer/type-conflict-reporter.ts:130 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Explicitly define the conflicting field types with the createTypes action so no inference is needed","Skip inference entirely on affected types using the `@dontInfer` directive","Inspect the reported selector and examples to find the fields receiving mixed types (e.g. string vs number) and normalize the source data","Note: conflicts from SitePlugin.* types are ignored by Gatsby and cannot be suppressed further"],"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"}