Skip to content

Commit

Permalink
fix(gatsby): correct GraphQL warning text (#28563)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladar committed Dec 9, 2020
1 parent a066a71 commit 2bb4214
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ describe(`Define parent-child relationships with field extensions`, () => {
`because type \`Child\` does not explicitly list type \`Parent\` in \`childOf\` extension.\n` +
`Add the following type definition to fix this:\n\n` +
` type Child implements Node @childOf(types: ["Parent"]) {\n` +
` id\n` +
` }`
` id: ID!\n` +
` }\n\n` +
`https://www.gatsbyjs.com/docs/actions/#createTypes`
)
})

Expand Down
5 changes: 3 additions & 2 deletions packages/gatsby/src/schema/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -1049,8 +1049,9 @@ const addImplicitConvenienceChildrenFields = ({
`type \`${typeName}\` does not explicitly list type \`${parentTypeName}\` in \`childOf\` extension.\n` +
`Add the following type definition to fix this:\n\n` +
` type ${typeName} implements Node @childOf(types: ["${parentTypeName}"]${manyArg}) {\n` +
` id\n` +
` }`
` id: ID!\n` +
` }\n\n` +
`https://www.gatsbyjs.com/docs/actions/#createTypes`
)
}
}
Expand Down

0 comments on commit 2bb4214

Please sign in to comment.