Skip to main content

bind_state_body_to_mutation

Function bind_state_body_to_mutation 

Source
pub fn bind_state_body_to_mutation<M>(
    descriptor: &DomainEventDescriptor,
    program: MutationProgram,
    input_root: &str,
) -> Result<ProjectionHandler, MutationProgramError>
Expand description

Spec: projection arm — domain-event body → mutation input object.

When the event fires, every non-skipped model column is bound from the event body into input.{input_root}.{field}.

§Errors

Propagates selector or binding construction failures.