isReferenced( )


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.

Method Declaration
Copy
Method Parameters
collectionIdstringRequired

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.


propertyNamestringRequired

The property that possibly contains the references to the referenced item.


referringItemunionRequired

The referring item or referring item's ID.


referencedItemunionRequired

The referenced item or referenced item's ID.


optionsWixDataOptions

An object containing options to use when processing this operation.

Returns
Return Type:Promise<boolean>
Was this helpful?
Yes
No