Frontmatter File node appears as string in custom resolver #29623
Unanswered
olivier-lacroix
asked this question in
Help
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am trying to create a custom resolver by using
createResolvers
, on a Markdown Frontmatter node (source
)In that resolver, I want to access a child File node (
source.document
).The File node appears as such in graphql, but in my custom resolver, it appears as a string only. ie. as defined in the markdown file frontmatter, before conversion into a File node.
How can I access that file field as a File node?
Thx!
Beta Was this translation helpful? Give feedback.
All reactions