We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 097b235 commit 1f4db4bCopy full SHA for 1f4db4b
packages/gatsby/src/schema/schema.js
@@ -373,13 +373,19 @@ const mergeTypes = ({
373
addExtensions({ schemaComposer, typeComposer, plugin, createdFrom })
374
375
return true
376
- } else {
+ } else if (typeOwner) {
377
report.warn(
378
`Plugin \`${plugin.name}\` tried to define the GraphQL type ` +
379
`\`${typeComposer.getTypeName()}\`, which has already been defined ` +
380
`by the plugin \`${typeOwner}\`.`
381
)
382
return false
383
+ } else {
384
+ report.warn(
385
+ `Plugin \`${plugin.name}\` tried to define built-in Gatsby GraphQL type ` +
386
+ `\`${typeComposer.getTypeName()}\``
387
+ )
388
+ return false
389
}
390
391
0 commit comments