Hi,
I would like some help please on a project that I am working on. This one hasn't been updated for the past 4 years. I' am migrating from gatsby-source-prismic-graphql to gatsby-source-prismic": "^5.2.9". None of my queries aren't working . I figure out on this page https://prismic.io/docs/technologies/migrate-to-gatsby-source-prismic-gatsby that all the queries have changed. Now I have to changed all the sites queries.
For example one of my queries is like this:
let documents = []
let proceed = true
let endCursor = null
while (proceed) {
const result = await graphql(
`
query($endCursor: String) {
prismic {
_allDocuments(
first: 20
after: $endCursor
type_in: ["doctor", "nurse"]
) {
edges {
node {
_meta {
lang
uid
type
}
}
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
totalCount
}
}
}
`,
{ endCursor }
)
I get these errors:
I know that prismic word doesn't exist anymore, so what about _allDocuments ? what is the equivalent in "gatsby-source-prismic": "^5.2.9" ? what would be the best way to reformat this query?
thanks again,
James