I am following all the guides to set up a blog page in combination with slices, but I cant figure out how to query slices? It gives me this error in GraphiQl:
This error is happening because the union type to get the Slice isn't quite right. If the Slice's name is Text then it should be calling PrismicBlogpostBodyText.
The current documentation is using the plugin's version 4. In this new version, Slice queries follow the same pattern but add the word Data after custom type. So in your case, it would be PrismicBlogpostDataBodyText.
I recommend you read the migration guide from V3 to V4. And let us know if you encounter any issues while migrating:
Pau
closed , flag & select 'Something Else' to reopen.
6
This thread has been closed due to inactivity. Flag to reopen.