When you setup a prismic project, you can access the url http://localhost:8000/__graphql to build you queries. Let's say I want to query the homepage heading;
{
allPrismicHomepage {
edges {
node {
data {
heading {
text
}
}
}
}
}
}
We get the following result;
{
"data": {
"allPrismicHomepage": {
"edges": [
{
"node": {
"data": {
"heading": [
{
"text": "Welcome"
}
]
}
}
}
]
}
},
"extensions": {}
}
So you would think you could use this query in your pages, but once I do I don't get to see anything. When I test this query on https://myproject.prismic.io/graphql, I get the following message;
"Query does not pass validation. Violations:\n\nCannot query field 'allPrismicHomepage' on type 'Query'. Did you mean 'allHomepages'? (line 2, column 3):\n allPrismicHomepage {\n ^"
What is the difference between "allPrismicHomepage" and "allHomepages"?
Just for information, I'm using the 'gatsby-source-prismic' instead of the 'gatsby-source-prismic-graphql'
With best regards,