Assets

What are Assets

Videos, audio, documents, archives and most commonly, images, are all types of an Asset. Assets are first class citizens in GraphCMS because the handling assets often needs special consideration. The way you upload files, store them and more requires a lot of implementation details - and so we've made them a special model in our system.

How to use Assets with GraphCMS

Assets are attached to your models via a relationship, once your model has an asset relationship, you can upload one (or more if allowed) assets to your content entry. We offer previews for images out of the box and the asset model has a number of top-level fields specific to images as well such as height and width.

One of the great features about Assets in GraphCMS is that you can create custom fields for adding additional metadata such as an image attribution field.

For more information about Assets, see our reference on the asset field or read the guide on how to work with assets.

This site uses cookies to provide you with a better user experience. For more information, refer to our Privacy Policy