View Source JetExt.Absinthe.OneOf.Helpers (jet_ext v0.2.2)

The helpers for JetExt.Absinthe.OneOf.

Summary

Functions

Link to this function

fold_key_to_field(data, input_object, field)

View Source
@spec fold_key_to_field(
  data :: map(),
  Absinthe.Blueprint.Input.Object.t(),
  field :: atom()
) ::
  {map(), Absinthe.Blueprint.Input.Value.literals()}
@spec unwrap_data(data :: map()) :: {key :: atom(), value :: term()}
Link to this function

unwrap_input_object(object)

View Source
@spec unwrap_input_object(Absinthe.Blueprint.Input.Object.t()) ::
  Absinthe.Blueprint.Input.Value.literals()