When I try to query richText field (not required) from a component (requied) which has "" as a value, my build fails, because schema doesn't recognise this field as a richText. Instead it recognise it as a String.
On top of that if richText value equals null my whole strapi query response is equal to null. RichText may have null value when user creates new entity and doesn't fill richText with anything immediately.
Info:
When I try to query richText field (not required) from a component (requied) which has
""
as a value, my build fails, because schema doesn't recognise this field as a richText. Instead it recognise it as a String.On top of that if richText value equals
null
my whole strapi query response is equal tonull
. RichText may havenull
value when user creates new entity and doesn't fill richText with anything immediately.Broken response looks like this:
Example:
I have this structure in Strapi:
My query looks like this:
I have also defined custom types to handle situation when whole strapiView will be empty:
I created PR with fix for this issues, but I'm not sure if it won't break anything
325