WeivData API Reference | ExWeiv Apps
    Preparing search index...

    Function insertReference

    • Parameters

      • collectionId: string

        The ID of the collection that contains the referring item.

      • propertyName: string

        The property to insert the reference into.

      • referringItem: Item | ItemID

        The referring item or referring item's ID.

      • referencedItem: Item | ItemID | Item[] | ItemID[]

        The referenced item, referenced item's ID, an array of referenced items, or an array of referenced item IDs.

      • Optionaloptions: WeivDataOptions

        An object containing options to use when processing this operation.

      Returns Promise<void>

      Inserts a reference in the specified property.