You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Post implements Node @dontInfer {
id: ID!
html: String
rawMarkdownBody: String
fileAbsolutePath: String
...
}
The MarkdownRemark entries that I select have a html field which contains the html output of the markdown file. I can see it in the Graphiql playground/console.
When I query with allPosts, the html field is empty. I get rawMarkdownBody and other fields but not html.
From what I can see html is only generated when queried for and, since I query for allPosts, my html output is never generated.
I've seen an issue where someone suggested filtering for the html field might trigger it to generate so I added a html : { ne: null } to the findAll query with no success.
Any idea how to trigger the html to be generated so I can have it available after my findAll query in the resolvers?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have this resolver query where I filter through all markdown entries to build a collection:
It returns a collection of type
Post:The
MarkdownRemarkentries that I select have ahtmlfield which contains the html output of the markdown file. I can see it in the Graphiql playground/console.When I query with
allPosts, thehtmlfield is empty. I getrawMarkdownBodyand other fields but nothtml.From what I can see html is only generated when queried for and, since I query for
allPosts, my html output is never generated.I've seen an issue where someone suggested filtering for the html field might trigger it to generate so I added a
html : { ne: null }to thefindAllquery with no success.Any idea how to trigger the html to be generated so I can have it available after my
findAllquery in the resolvers?Beta Was this translation helpful? Give feedback.
All reactions