Skip to main content

transact_with_resource_effects

Function transact_with_resource_effects 

Source
pub fn transact_with_resource_effects(
    adapter: &dyn DatabaseOperations,
    config: &DbBackendConfig,
    schema: &AppSchema,
    transaction: &Transaction,
    effects: &[Mutation],
    resource: Option<&ResourceBinding>,
) -> Result<TransactionResult, DatabaseError>
Expand description

Resolves a single created resource inside the same transaction as its outbox. Batch actions retain their declared aggregate resource instead of choosing an arbitrary record identity.