Cqrs.Absinthe.derive_mutation
You're seeing just the macro
derive_mutation
, go back to Cqrs.Absinthe module for more information.
Defines an Absinthe
mutation
for a Command.
Options
:as
- The name to use for the mutation. Defaults to the query_module name snake_cased.:then
- Afunction/1
that accepts the result of the command execution. The function should return the standardAbsinthe
{:ok, response}
or{:error, error}
tuple.:input_object?
-true | false
. Defaults tofalse
- If
true
, one arg with the name of:input
will be generated. - If
true
, aninput_object
for the Command is expected to exist. Seederive_mutation_input/2
.
- If