gatsby-transformer-remark - add additional helpful fields to MarkdownRemark nodes from parent File node
#30393
Unanswered
kimbaudi
asked this question in
Ideas / Feature Requests
Replies: 1 comment
-
|
For those who want to do it before the plugin supports it, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently,
MarkdownRemarknodes created fromgatsby-transformer-remarkplugin providesfileAbsolutePathfield and I use it to filter markdown nodes{ allBlogPost: allMarkdownRemark( filter: { fileAbsolutePath: { glob: "**/blog-posts/**" } } ) { nodes { fileAbsolutePath } } }But if
gatsby-transformer-remarkplugin also providedsourceInstanceName,relativeDirectory,namefields from its parentFilenode, then my graphql query to filter markdown nodes could be simplified to this:{ allBlogPost: allMarkdownRemark( filter: { fileSourceInstanceName: { eq: "blog-posts" } } ) { nodes { fileSourceInstanceName } } }It would be awesome if
gatsby-transformer-remarkcould provide the following nodes:or better yet:
Beta Was this translation helpful? Give feedback.
All reactions