Anyone out there that has made the jump from gatsby-source-prismic to gatsby-source-prismic-graphql and know if the query structure and naming are the same.
For example I'm currently using something like the below for gatsby-source-prismic.
export const query = graphql`
query pageQuery($uid: String!) {
page: prismicPageTemplate(uid: { eq: $uid }) {
uid
type
data {
title
body {
... on PrismicPageTemplateBodyQuestionSlice {
slice_type
primary {
name
title {
html
text
}
}
}
}
}
}
}
I've read the docs of both plugins and have also seen others ask similar questions. The docs for gatsby-source-prismic has this included as their naming convention
All documents are pulled from your repository and created as prismic${contentTypeName} and allPrismic${contentTypeName}, where ${contentTypeName} is the API ID of your document's content type.
Would I have to re-write all my queries if I wanted to switch to gatsby-source-prismic-graphql or do they use the same convention for their naming ?