I am unable to query data raw for certain schemas

When trying to use rich text, I only have access to text and type, no raw. This happens to some of my queries. Some I do have access to raw and can render with rich text. Can anyone help? I am using the gatsby-source-prismic plugin.

{
  allPrismicContactPage {
    edges {
      node {
        data {
          description {
            type
            text
          }
          page_title {
            text
            type
          }
        }
      }
    }
  }
}compared to{
          allPrismicHomepage {
            edges {
              node {
                data {
                  title {
                    html
                    raw
                    text
                  }
                }
              }
            }
          }
    }

And I have built out my schmas for the custom types by copying the json editor with the exact same name.

Issue is resolved.
I forgot to include it in my schemas portion here lol.
schemas: {
contact_page: require("./src/schemas/contact_page.json"),
page: require("./src/schemas/page.json"),
navigation: require("./src/schemas/navigation_links.json"),
homepage: require("./src/schemas/homepage.json"),
},

1 Like

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