calcinator v1.5.0 Calcinator.Resources.Sorts

Sorts in Calcinator.Resources.query_options

Summary

Functions

Maps Alembic.Fetch.t sorts attribute to t Resources.Sort.t field and Alembic.Fetch.t sorts relationships to t Resources.Sort.t associations

Maps Alembic.Fetch.t sorts attribute to t Resources.Sort.t field and Alembic.Fetch.t sorts relationships to t Resources.Sort.t associations

Maps t Resources.Sort.t field to Alembic.Fetch.t sorts attribute and t Resources.Sort.t associations to Alembic.Fetch.t sorts relationships

Types

Functions

from_alembic_fetch(fetch, options)

Maps Alembic.Fetch.t sorts attribute to t Resources.Sort.t field and Alembic.Fetch.t sorts relationships to t Resources.Sort.t associations.

from_alembic_fetch_sorts(sorts, options)
from_alembic_fetch_sorts(Alemic.Fetch.Sorts.t | nil, Calcinator.Resources.Sort.from_alembic_fetch_sort_options) ::
  {:ok, nil | t} |
  Alembic.FromJson.error

Maps Alembic.Fetch.t sorts attribute to t Resources.Sort.t field and Alembic.Fetch.t sorts relationships to t Resources.Sort.t associations.

to_alembic_fetch_sorts(sorts, options)
to_alembic_fetch_sorts(nil, Calcinator.Resources.t) :: {:ok, nil}
to_alembic_fetch_sorts(t, Calcinator.Resources.t) ::
  {:ok, Alembic.Fetch.Sorts.t} |
  Alembic.FromJson.error

Maps t Resources.Sort.t field to Alembic.Fetch.t sorts attribute and t Resources.Sort.t associations to Alembic.Fetch.t sorts relationships.