Checks if a reference to the referenced item exists in the specified property of the referring item.
The isReferenced()
function returns a Promise that resolves to true
if
the referring item contains a reference to the referenced item in the
specified property. The Promise is rejected if the current
user does not have read permissions for the collection.
Calling the isReferenced()
function does not trigger any hooks.
Note: The isReferenced()
function is not supported for Single Item Collections.
The ID of the collection that contains the referring item.
To find your collectionId, select the Databases tab in the Velo Sidebar. Hover over your collection, click the three dots, and select Edit Settings.
The property that possibly contains the references to the referenced item.
The referring item or referring item's ID.
The referenced item or referenced item's ID.
An object containing options to use when processing this operation.