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

Functions for getting detailed information about specific operations and the way their data is structured.

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 type_data() :: %{
  name: atom(),
  description: binary() | nil,
  enumValues: [enum_value()] | nil,
  fields: [] | nil,
  inputFields: [] | nil,
  interfaces: [] | nil,
  kind: atom() | nil,
  possibleTypes: [AbsintheQueryAll.Query.TypeLayers.type_layer()] | 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, [type_data()]}]) :: [
  AbsintheQueryAll.Query.Fields.field()
]
Link to this function

for_operation(operation_type)

View Source
Link to this function

get_by_name(type_name, list_of_types)

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