Cqrs.Absinthe.computed_field

You're seeing just the macro computed_field, go back to Cqrs.Absinthe module for more information.
Link to this macro

computed_field(command_module, return_type, opts \\ [])

View Source (macro)

Defines a field backed by a Command resolver.

Options

  • :as - The name to use for the mutation. Defaults to the query_module name snake_cased.
  • :before_resolve - Absinthe Middleware to run before the resolver.
  • :after_resolve - Absinthe Middleware to run after the resolver.
  • :arg_types - A list of filter names to absinthe types. See example.
  • :parent_mappings - A keyword list of command fields to functions that receive the field's parent object as an argument.
  • :field_transforms - A keyword list of command fields to functions that receive the field's current value as an argument.