I am trying to update my CMS to enable a user-defined product slider. Upon adding the relevant schema to my sanity source files (This works) and adding the documents to the schema there is no update on the gatsby side.
I can not find out how to update the graphql schema anywhere. I have tried deleting the cache on both sanity and gatsby, building development versions and trying with them but nothing is working
Whenever your schema changes, you also need to re-deploy you GraphQL endpoints. cd
to your Studio folder and type:
sanity graphql deploy
The Sanity documentation site has more on updating your GraphQL endpoints.