Closed davinakano closed 4 years ago
Hi 👋
First of all, fantastic course! So far, I have been enjoying a lot. Kudos!
I have been following the course but got a little bit stuck in the following video: https://frontendmasters.com/courses/gatsby/getting-post-data-by-slug/
Turns out that instead of
query($slug: String!) { mdx(frontmatter: { slug: { eq: $slug } }) { frontmatter { title author } code { body } } }
I had to use:
query($slug: String!) { mdx(frontmatter: { slug: { eq: $slug } }) { frontmatter { title author } body } }
Seems that there's no code under mdx().
code
mdx()
If someone run into the same issue, please give it a try!
Cheers!
saw the same thing and came to post about it! good looking out @davinakano !
Added to the course errata as well as in a pop up annotation to the course... thanks @davinakano @denvercoder @luis-echegaray !
Hi 👋
First of all, fantastic course! So far, I have been enjoying a lot. Kudos!
I have been following the course but got a little bit stuck in the following video: https://frontendmasters.com/courses/gatsby/getting-post-data-by-slug/
Turns out that instead of
I had to use:
Seems that there's no
code
undermdx()
.If someone run into the same issue, please give it a try!
Cheers!