Skip to content
Discussion options

You must be logged in to vote

Hello!

If you look at the TypeScript definitions and search for graphql<Tdata you'll see that only CreatePagesArgs and BuildArgs receive that data in the arguments.

You'll want to use the onPostBuild hook, e.g. the sitemap plugin is also doing that: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-sitemap/src/gatsby-node.js

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@EmaSuriano
Comment options

@PaulBunker
Comment options

@nimajnebp
Comment options

Answer selected by EmaSuriano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #27638 on November 02, 2020 09:32.