pub struct CommittedMutation<'a> {
pub mutation_name: &'a str,
pub entity_type: &'a str,
pub operation: &'a MutationOperation,
pub entity: &'a Value,
pub entity_id: Option<&'a str>,
pub security_ctx: Option<&'a SecurityContext>,
pub dispatch_depth: u8,
}Expand description
A mutation that committed successfully, as the engine saw it.
Fields§
§mutation_name: &'a strThe mutation’s name, as declared.
entity_type: &'a strThe type the write produced: the function’s entity_type stamp, or else the one type
a success of this mutation can be.
Never the name of a synthesized error union or a cascade payload: the produced
entity, which is what an after:mutation:<Type> trigger names.
operation: &'a MutationOperationThe declared operation (insert, update, delete, or a custom function).
entity: &'a ValueThe full entity the mutation function returned, independent of what any client selected. For a delete it is the removed row.
entity_id: Option<&'a str>The mutated entity’s id, when the function reported one.
security_ctx: Option<&'a SecurityContext>The principal the write ran as, or None for an unauthenticated write.
dispatch_depth: u8How deep in a dispatch chain the write was made: 0 for a write a request or a
scheduled source made, n for one made by a function that a depth-n - 1 event
dispatched. See dispatched_at.