gatsby-source-prismic-graphql icon indicating copy to clipboard operation
gatsby-source-prismic-graphql copied to clipboard

New fields added to repeatable type not showing in project

Open r-saba opened this issue 4 years ago • 1 comments

I added a rich text field to a repeatable type and this field cannot be queried with graph. I see that the field is in the prismic API via their website but cannot retrieve it with graphql in my project.

"GraphQLError: Cannot query field \"faketitleweadded\" on type \"PRISMIC_Jobs\"."

r-saba avatar Jul 19 '20 20:07 r-saba

I've just come across this, some initial thoughts...

  • Just check faketitleweadded is indeed on PRISMIC_Jobs
  • If it exists on there it might need to be a Key Text type rather than Rich Text
  • If it doesn't exist on thee then maybe you need to add that key to all types

NB this is a complete guess without seeing your code. I was originally trying to use TAGS but that doesn't work, so I'm now trying this.

jodiedoubleday avatar Aug 11 '20 14:08 jodiedoubleday