Skip to content

Commit

Permalink
fix: use content type id by default to create reference gql types (ga…
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Oct 2, 2020
1 parent 5b4e9e0 commit 9951168
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/gatsby-source-contentful/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,11 @@ exports.sourceNodes = async (

if (entryList[i].length) {
reporter.info(
`Creating ${entryList[i].length} Contentful ${contentTypeItem.name} nodes`
`Creating ${entryList[i].length} Contentful ${
pluginConfig.get(`useNameForId`)
? contentTypeItem.name
: contentTypeItem.sys.id
} nodes`
)
}

Expand Down

0 comments on commit 9951168

Please sign in to comment.