I have use case where I need to programmatically update or create story in a repository when there is change on a google sheet. I suppose notifying the change may be possible using App Script, but I do not know how to mutate data on the particular story? It seems Prismic GraphQL API only supports queries not mutations?
Is there anyway mutate data on stories, repositories using GraphQL?
Mutation in Prismic GraphQL is now available nor in the REST API; instead (and it is dependent on your use case), have you taken a look at the Integration Fields to feature to push some data?
Please let us know if you would like us to activate the feature for you,
Fares
May I know what kind of information & fields you would like to update in Prismic to understand your business use case to which we might have solutions?
sure, I have some system users that will use Google Sheets (since most are familiar with it), but we need to add rich text, images to records added by Sheets's users, so we need to way to map these two.
ex:
Sheet: id, name
CMS: id (need to get from sheet), desc, images
To perform mutations with the Prismic REST API, you'll need to make HTTP requests to the appropriate endpoints for creating or updating content. You can use popular programming languages like JavaScript, Python, or any language capable of making HTTP requests to interact with the REST API.