View Source AbsintheQueryAll.Query.Type (absinthe_query_all v0.1.1)

Summary

Types

@type data_structure() ::
  :non_nullable_list_of_non_nullables
  | :nullable_list_of_non_nullables
  | :non_nullable_list_of_nullables
  | :nullable_list_of_nullables
  | :non_nullable_type
  | :nullable_type
@type details() :: %{
  type_name: atom(),
  type_category: atom(),
  data_structure: data_structure()
}
@type enum_value() :: %{
  deprecationReason: binary() | nil,
  description: binary() | nil,
  isDeprecated: boolean(),
  name: atom()
}
@type list_type() :: :not_a_list | :nullable_list | :non_nullable_list
@type t() :: %{
  name: atom(),
  description: binary() | nil,
  enumValues: [enum_value()] | nil,
  fields: [] | nil,
  inputFields: [] | nil,
  interfaces: [] | nil,
  kind: atom() | nil,
  possibleTypes: [AbsintheQueryAll.Query.TypeLayer.t()] | nil
}

Functions

Link to this function

details(type_data, options \\ [])

View Source
Link to this function

fields_for(type_name, list)

View Source
@spec fields_for(atom(), [{:available_types, [t()]}]) :: [
  AbsintheQueryAll.Query.Field.t()
]
Link to this function

for_operation(operation_type)

View Source
@spec for_operation(AbsintheQueryAll.Query.Operation.t()) :: atom()
Link to this function

get_by_name(type_name, list_of_types)

View Source
@spec get_by_name(atom(), [t()]) :: t()