-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Parsing rich text from Contentful is a poorly-documented nightmare #13109
Comments
Yeah, I've seen it referred to as In GraphiQL I can only get very deeply nested content > content > content > content > content, which works, as long as I splice out any lists or anything that isn't a tag... Is there something I'm missing if these JSON fields don't exist for me? |
@MitchEff You might want to update contentful plugin to get |
|
@MitchEff Some of the questions and answers in this issue might help to get a better understanding of Contentful rich text. |
@MitchEff I'm closing this for now. Feel free to reopen if questions remain. |
Hey, for what it's worth, I ran into a similar problem with the Once I ran |
After much hair-pulling, I'm fairly sure we were victim to the same issue. I threw out all our packages and installed everything fresh, and the |
!!!!!! I see this as a temporary fix though because obviously I'd like to be using the latest version of that package |
Thanks, actually worked! Ran to the same issue, seems that they have changed something for this particular query, as 'json' is not available in the newest plugin version. Based on the guide it is suggested to refer to allContentfulBlogPost { edges { node { bodyRichText, however this field is missing in my queries docs. |
I have the exact same problem, and I have used "npm update", still have the same problem, @toolness. Probably, I will use the old version. |
So, there's not really any meaningful documentation on how to do this, and as of yet I've spent pretty much all day chasing my own tail, writing the longest, ugliest GraphQL queries I've ever seen.
Is this actually a thing that works? So far I can render one (1) paragraph tag with this humungous query:
export const pageQuery = graphql query contentPageQuery($id: String!) { contentfulContentPage(id: { eq: $id }) { title introduction { title contentBlocks { title content { nodeType content { nodeType content { nodeType value marks { type } content { nodeType content { nodeType content { nodeType } } } } } } } } } }
... but a simple unordered list causes everything to come crashing down.
I guess what I'm asking is if there's actually any documentation out there, or if any real human beings have been able to use this?
I've never missed
<?php the_content(); ?>
so much in my life.The text was updated successfully, but these errors were encountered: