Gatsby v3 Tutorial Part 6: slug in GraphQL query is undefined #32681
Unanswered
ngAlexander9
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm following along with the Gatsby v3 tutorial.
My src/pages/blog/index.js (identical to tutorial) should query the slug to generate the correct links, but the resulting links are http://localhost:8000/blog/undefined.
Manually running the query at http://localhost:8000/___graphql returns the expected slug values, but logging the query to console in src/pages/blog/index.js returns all the other values except slug.
src/pages/blog/index.js
Beta Was this translation helpful? Give feedback.
All reactions