Understanding the use of assetId in Sanity.io

1 replies
Last updated: May 29, 2023
what is
assetId
used for? i thought in the beginning that i need it to reference my images, but for this
_id
is needed...
May 27, 2023, 9:39 AM
The
_id
of an asset is the
assetId
preceded by
image-
(or
file-
) and followed by the dimensions and file extension of the uploaded asset. I believe it may be used by certain libraries, such as
@sanity/asset-utils
.
May 29, 2023, 7:54 PM

Sanity– build remarkable experiences at scale

The Sanity Composable Content Cloud is the headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?

Categorized in