I have an Article type, and I use extraPageFields to filter by category to generate different sub-categories. But I also decided to add another type Newsletter which doesn't have a category but still want to generate the said page.
GraphQLError: Cannot query field "category" on type "PRISMIC_Newsletter".
I guess Prismic tries to search for the field in this page but it fails and it throws an error. But this means that if I want to use extraPageFields, I need to add it to every page that I want to use.
I have an Article type, and I use extraPageFields to filter by category to generate different sub-categories. But I also decided to add another type Newsletter which doesn't have a category but still want to generate the said page.
I get
I guess Prismic tries to search for the field in this page but it fails and it throws an error. But this means that if I want to use extraPageFields, I need to add it to every page that I want to use.