Skip to content
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

Try different queries for compatibility #75

Open
daaain opened this issue Oct 30, 2020 · 0 comments
Open

Try different queries for compatibility #75

daaain opened this issue Oct 30, 2020 · 0 comments

Comments

@daaain
Copy link

daaain commented Oct 30, 2020

Hey, thanks a lot for this plugin!

I was trying to get it working, but even after setting the query: "allMdx" I kept on getting an error.

Digging a bit into the issue, for some reason my Gatsby setup doesn't have fields in the MDX nodes, so only have slug in frontmatter.

Was wondering if maybe the best would be to try a few different queries of different shapes before giving up?

So could do a combination of allMdx or allMarkdownRemark and then queries with slug in both places until one works.

If you think that's a good idea I'm willing to submit a PR. This would also implicitly fix #2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant