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

Is something broken with childMdx? #11

Open
blackmad opened this issue Oct 18, 2023 · 1 comment
Open

Is something broken with childMdx? #11

blackmad opened this issue Oct 18, 2023 · 1 comment

Comments

@blackmad
Copy link

I can't seem to find childMdx in the graphql explorer

image

I have gatsby-plugin-mdx being imported into my project via this theme: https://github.com/LekoArts/gatsby-themes/blob/main/themes/gatsby-theme-jodie-core/gatsby-config.mjs

so I'm not sure why I wouldn't be seeing that node.

@alvis
Copy link
Owner

alvis commented Oct 18, 2023

Yes. Indeed. I noticed that last year.
An alternative is using gatsby-transformer-remark.
I've an example in e2e. I should have updated the README. Thanks for pointing out :)

{
resolve: 'gatsby-transformer-remark',
options: {
plugins: ['gatsby-remark-images'],
},
},

query Projects {
notionDatabase(title: { eq: "Projects" }) {
childrenNotionPage {
childMarkdownRemark {
id
}
properties {
path
}
}
}
}
`);

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

2 participants