type

ReferenceDeleteRequest

One permanent-delete reconciliation request.

Properties

PropertyTypeDescription
TargetDocumentReferenceThe Target value.
Collectionsmap[schema.StableID]schema.CollectionThe Collections value.
IgnoreOwners[]DocumentReferenceThe IgnoreOwners value.
PendingOwners[]DocumentReferencePendingOwners are owners whose own hard delete is already in progress in this transaction, as in a cascade cycle. Their cascade references are cleared like nullify ones. A cascade reference from any other owner restricts the delete: the engine deletes cascade owners first, so one that remains appeared concurrently.

How it works

Transaction.ApplyReferenceDelete must atomically reject restrict policies or nullify/remove current references. Version snapshots remain immutable.

Full signature

type ReferenceDeleteRequest struct { Target DocumentReference Collections map[schema.StableID]schema.Collection IgnoreOwners []DocumentReference // PendingOwners are owners whose own hard delete is already in progress in // this transaction, as in a cascade cycle. Their cascade references are // cleared like nullify ones. A cascade reference from any other owner // restricts the delete: the engine deletes cascade owners first, so one // that remains appeared concurrently. PendingOwners []DocumentReference }

Source store/store.go:600