[email protected]
Rich Text Changes/Migration
#28098
Replies: 7 comments 36 replies
-
Not sure if this is a bug or just a miss in the documentation but when setting a reference to an
this is because if you use It might have to do something with this comment? #25249 (comment) |
Beta Was this translation helpful? Give feedback.
-
I'm trying to upgrade to v4 of blocks {
... on ContentfulBlockRichText {
body {
raw
}
}
} Which worked fine before the upgrade. If I pass
Running |
Beta Was this translation helpful? Give feedback.
-
Does anyone have recommendations on how to handle content types that might (or might not) be included in Rich Text? Let's imagine a simple content type |
Beta Was this translation helpful? Give feedback.
-
This is a problem when required to use
Error:
I worked around it by creating an alias for one of the fields. I'm using gatsby 2.28.0 and [email protected], also tried 4.3.0-next.1 |
Beta Was this translation helpful? Give feedback.
-
Thanks for reaching out to me. I am sorry with the hash comment though. I
must start with commendations, you have put up a good documentation.
Nevertheless, it is necessary to update the documents when things change.
For instance, it used to be body { JSON } but not split into body { raw
references { } }. There should be a documentation to that effect that is
straightforward to approach for any developer regardless our levels. I am a
beginner, life was miserable until I found a solution through someone on
YouTube.
Thank you for reaching out and I am very sorry.
Thank you for your time.
Abdul
…On Mon., Feb. 8, 2021, 6:56 a.m. Benedikt Rötsch, ***@***.***> wrote:
@abdojulari <https://github.com/abdojulari> Sorry for you disliking the
documentation.
Any suggestions?
What do you mean by Why is it a big to display an image from contentful??
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28098 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7SSTVJIISY5B6NGGADKBDS57GPBANCNFSM4TW6GGQQ>
.
|
Beta Was this translation helpful? Give feedback.
-
To be quite frank with you all, the new
Why? I'm glad you asked! Read on. Before v4 came out, we had to fight this plugin by creating at least one entry for each content type that would populate all optional fields to ensure that the GQL schema generated by Gatsby at build time is stable and doesn't change depending on the content. However, the references inside rich text fields weren't affected by this issue because they were not individually queryable as it was all taken care of by the plugin itself. After v4, this issue now affects rich text field references as well which means that we not only need to maintain redundant entries with all of the optional fields filled out, now we also need to make sure that all rich text fields that support different kinds of embedded entries, entry hyperlinks or asset hyperlinks need at least one entry that lists out at least one instance of each referenced type which is really insane if you ask me. Consider the following numbers:
As you can imagine, it'd be a TON of work to ensure GQL schema stability with such a large and dynamic content model. Don't get me wrong, it would be a huge improvement over the previous solution if that wasn't the case, but given the aforementioned drawback, it's become unfeasible for us to migrate to newer versions due to all the extra work. Are there any plans to improve the situation and generate the schema from the validation rules as that's the only way to ensure stable schema? We can't be the only ones suffering from this issue or are we outliers? Is there anyone else who shares my point of view? Oddly enough, GraphQL API provided by Contentful itself is always generated correctly based on validation rules and not content. So what is preventing this plugin from doing the same or utilizing the existing GQL schema? I'm not familiar enough with the implementation details and limitations and so I can't tell if there's a serious blocker preventing this from being implemented correctly but I'd be happy to take a stab at it if someone who's more familiar provides some context and pointers. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Description
With version 4.0.0 the Rich Text experience was changed. Please use this umbrella discussion to share migrations or ask questions or report possible bugs.
@axe312ger can share more information then.
Related issues
#28052
#28074
Beta Was this translation helpful? Give feedback.
All reactions