Quering Rich Text Fields - No raw data available

So I created two different pages which both use a Rich Text field called description. On the Homepage we have data.banner_description.raw available to create a RichText component.

On the other hand we have the Contactpage which also uses a RichText component to render the contents of a Rich Text field.

To my surprise there's no raw data available on the contactpage. The json output for the Richt Text fields is identical.

Are there any options I'm missing within Prismic which generates the raw data for a Rich Text field?

query MyQuery {
  allPrismicContactpage {
    edges {
      node {
        data {
          description {
            type
            text
          }
        }
      }
    }
  }
  allPrismicHomepage {
    edges {
      node {
        data {
          banner_description {
            raw
            text
            html
          }
        }
      }
    }
  }
}

Maybe it's just late but I've checked this three times now and I just don't get why I can't query the raw data...

So, with the new "gatsby-source-prismic" you need to create schema's for all your Custom Types and include them within your gatsby-config.js

Both the raw data and slices are now available.

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