AthenaWeb.Schema.Helpers (athena_logistics v1.0.0)

Helpers

Link to this section Summary

Link to this section Functions

Link to this function

changeset_result(result)

@spec changeset_result(result :: {:ok, term()}) :: {:ok, term()}
@spec changeset_result(result :: {:error, Ecto.Changeset.t()}) ::
  {:ok, Ecto.Changeset.t()}
@spec changeset_result(result :: {:error, term()}) :: {:error, term()}
Link to this function

connection_from_query(query, args, list_fn \\ &Repo.all/1, count_fn \\ &Repo.aggregate(&1, :count))

@spec connection_from_query(
  query,
  args :: map(),
  list_fn :: (query -> [row]),
  count_fn :: (query -> row) | nil
) :: {:error, term()} | {:ok, Absinthe.Relay.Connection.t()}
when query: Ecto.Queryable.t(), row: any()
Link to this function

from_global_id!(id, type)

@spec from_global_id!(id :: String.t(), type :: atom()) :: String.t()
@spec from_global_id!(id :: String.t(), types :: [atom()]) :: %{
  type: atom(),
  id: binary()
}
Link to this function

many_dataloader()

@spec many_dataloader() :: Absinthe.Resolution.Helpers.dataloader_key_fun()
Link to this macro

payload_fields(output_type)

(macro)