onPostBuild graphql query returns empty object #29267
Unanswered
dwainetrain
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to build a json file after the site builds, but my graphql query is returning an empty object. Here's the code from the gatsby-node.js
And I get this result (and other obvious errors because the data isn't there):
Any ideas on why the query isn't working? It works when building pages.
Beta Was this translation helpful? Give feedback.
All reactions