Baz.CollectionEvents (baz v0.0.3)
Link to this section Summary
Functions
Gets a single collection_event.
Link to this section Types
Link to this type
collection_event()
@type collection_event() :: Baz.CollectionEvents.CollectionEvent.t()
Link to this type
filter_and_order_opts()
Link to this type
order_opt()
@type order_opt() :: {:order, [atom()]}
Link to this type
where_opt()
Link to this section Functions
Link to this function
collection_event_changeset(attrs)
@spec collection_event_changeset(map()) :: Ecto.Changeset.t() | {:error, term()}
Link to this function
filter_and_order(opts)
@spec filter_and_order(filter_and_order_opts()) :: [collection_event()]
Link to this function
get_collection_event!(id)
@spec get_collection_event!(non_neg_integer()) :: collection_event()
Gets a single collection_event.
Raises Ecto.NoResultsError
if the CollectionEvent does not exist.
examples
Examples
iex> get_collection_event!("open_sea")
%CollectionEvent{}
iex> get_collection_event!("open_zea")
** (Ecto.NoResultsError)