View Source EctoJuno.Helpers.SortingHelpers (ecto_juno v0.1.0)

Sorting helpers

Link to this section Summary

Functions

Returns atom representation of string from either list of atoms or Ecto.Schema

Link to this section Functions

Link to this function

map_string_field_to_atom(string_field, schema_or_list)

View Source
@spec map_string_field_to_atom(String.t(), atom() | list()) :: atom() | nil

Returns atom representation of string from either list of atoms or Ecto.Schema

If not found returns nil