Richtext field is irregular

I have two repos both using Prismic. In one of them, the Richtext field looks odd. This one does not match the fields one would expect here, instead, as viewed through /__graphiql, it has

richtext {
   HTML
   raw
   text
}

Why are the two different if they are both Richtext? Are there some obscure settings or newer changes that have altered the behaviour of the richtext? The 'raw' seems to contain all the correct fields that one would expect.

Hi Team,

Welcome to the community!

It looks like you're fetching V1 of the API and not V2. Make sure the route is https://your-repo-name.prismic.io/api/v2 in your project set-up.

Thanks.

Hey there @devteam1, are you using Gatsby in your project?
These fields (html, raw, text) are only accessible from a Prismic & Gatsby schema.
The API response format that you saw here can be found in the raw option. But please note that in the latest version of the Gatsby plugin this field is renamed to richtext.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.