We just launched our new Hygraph Studio in beta. Learn more

Hygraph
Docs

Updating assets

Since assets are a system model, and automatically added to every project, you can extend them with your own custom fields.

These fields can be updated using GraphQL mutations.

In the following example, we have added altText and caption fields to our Assets model. Here, we are using an updateAsset mutation to change the text in them:

After successfully running this mutation, if you access your asset in edit mode, you will see the new altText and caption.

Learn more about Mutations.