View Source AbsintheQueryAll.Query.Arguments (absinthe_query_all v0.5.0)

Code for generating ascertaining and stringifying the arguments to a specific operation.

Summary

Types

@type arg_data() :: %{
  name: atom(),
  data_type: atom(),
  data_structure: AbsintheQueryAll.Query.Types.data_structure()
}

Functions

Link to this function

build_strings(config, list)

View Source
@spec build_strings(
  %{
    :operation_type => AbsintheQueryAll.Query.Operations.operation_type(),
    :operation_name => atom(),
    :available_types => [AbsintheQueryAll.Query.Types.type_data()],
    optional(:parent_alias_generator) => (atom(), [arg_data()] -> any()) | nil,
    optional(atom()) => any()
  },
  [{:available_types, [AbsintheQueryAll.Query.Types.type_data()]}]
) :: %{
  args_declaration: binary(),
  args_passage: binary(),
  operation_alias: binary() | nil
}
@spec generate_for(
  %{
    :operation_type => AbsintheQueryAll.Query.Operations.operation_type(),
    :operation_name => atom(),
    optional(atom()) => any()
  },
  [{:available_types, [AbsintheQueryAll.Query.Types.type_data()]}]
) :: [arg_data()]