-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is It possible to query post within the same category in frontmatter? #10801
Is It possible to query post within the same category in frontmatter? #10801
Comments
You can pass |
Thanks a lot! I have added
|
@sparklesam You could add another filter that does a not equal check with the current slug So then the filter section becomes
|
Thanks a lot for all your help! |
Summary
I'm trying to show related post under the same frontmatter categories. Is it possible to do this within a GraphQL query?
In page template for blog post, I have already setup another query for frontmatter categories, just dunno how to connect two queries together.
File contents (if changed)
gatsby-config.js
: N/Apackage.json
: N/Agatsby-node.js
: N/Agatsby-browser.js
: N/Agatsby-ssr.js
: N/AThe text was updated successfully, but these errors were encountered: