Skip to content

CollectionAddOp

Builder collection add operation. Omitting name creates the backend’s canonical auto-named collection from the supplied members.

readonly operation: "add"

Operation discriminator. Always add.


readonly optional kind?: "collection"

Optional kind override. Collection add inputs may omit this when type and members are present.


readonly optional name?: string

Optional collection name. Omit to let the backend assign the canonical collection name from the supplied members.


readonly type: CollectionAddType

Collection type.


readonly members: string[]

Collection member wrefs.


readonly optional skipExisting?: boolean

When true, an existing target returns noop instead of failing.