alvis / gatsby-source-notion

A Gatsby source plugin for content management with Notion using the official API.
MIT License
56 stars 6 forks source link

Is something broken with childMdx? #11

Open blackmad opened 1 year ago

blackmad commented 1 year ago

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 commented 1 year ago

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 :) https://github.com/alvis/gatsby-source-notion/blob/b785dbb5462cf88a1120ce66f1db798de1269ed6/e2e/gatsby-config.ts#L35-L40 https://github.com/alvis/gatsby-source-notion/blob/b785dbb5462cf88a1120ce66f1db798de1269ed6/e2e/gatsby-node.ts#L58-L70