type
ReferenceDeleteRequest
One permanent-delete reconciliation request.
Properties
| Property | Type | Description |
|---|---|---|
Target | DocumentReference | The Target value. |
Collections | map[schema.StableID]schema.Collection | The Collections value. |
IgnoreOwners | []DocumentReference | The IgnoreOwners value. |
PendingOwners | []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. |
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
}