Baz.CollectionAssets (baz v0.0.2)
Link to this section Summary
Functions
Gets a single collection_asset.
Link to this section Types
Link to this type
collection_asset()
@type collection_asset() :: struct()
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_asset_changeset(attrs)
@spec collection_asset_changeset(map()) :: Ecto.Changeset.t() | {:error, term()}
Link to this function
filter_and_order(opts)
@spec filter_and_order(filter_and_order_opts()) :: [collection_asset()]
Link to this function
get_collection_asset!(id)
Gets a single collection_asset.
Raises Ecto.NoResultsError
if the Collection does not exist.
examples
Examples
iex> get_collection_asset!(123)
%CollectionAsset{}
iex> get_collection_asset!(456)
** (Ecto.NoResultsError)