-
Started learning Gatsby by following the YouTube tutorial. I have followed each step as shown in the tutorial. So I am at the stage of creating a post list page. The post list page will have 3 posts and the other will be available through pagination. And it will be sorted in descending order. I am getting an error as below:
gatsby-node.js file:
allPosts.js file:
|
Beta Was this translation helpful? Give feedback.
Answered by
LekoArts
May 21, 2021
Replies: 1 comment 1 reply
-
In your
Not |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LekoArts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your
allPosts
file you need to call the query like this:Not
graphql(`{ your_query }`)