Cqrs.Absinthe.query_args

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

query_args(query_module, opts \\ [])

View Source (macro)

Creates args for an Absinthe query from a query's filters.

Options

  • :only - Restrict importing to only the filters listed
  • :except - Imports all filters except for those listed
  • any filter name to an existing absinthe_type

Examples

field :user, :user do
  query_args GetUser, except: [:name]
  resolve &user/2
end

connection field :users, node_type: :user do
  query_args ListUsers, status: :user_status
  resolve &users/2
end