Using gatsby-node.js and createPages I can query something using graphql and create pages using that something as page context. So those pages can use that something as parameter in their queries.
The problem I'm facing is that I don't want to use createPages. I'm completely fine with pages that are created by default (from gatsby-plugin-page-creator), I just want all of them to have something from graphql as a context.
Basically I want a global context (which I get from gatsby graphql) to be available for all pages.
There is onCreatePage hook but unfortunately graphql is not available there according to https://github.com/gatsbyjs/gatsby/issues/3121#issuecomment-348781341.