ArangoXEcto.schema_type-exclamation-mark
You're seeing just the function
schema_type-exclamation-mark
, go back to ArangoXEcto module for more information.
Specs
schema_type!(atom()) :: :document | :edge
Same as schema_type/1 but throws an error on none
This is just a shortcut to using is_edge/1
and is_document/1
. If it is neither an error is raised.
Examples
A real edge schema
iex> ArangoXEcto.schema_type!(MyApp.RealEdge)
:edge
Some module that is not an Ecto schema
iex> ArangoXEcto.schema_type!(MyApp.RandomModule)
** (ArgumentError) Not an Ecto Schema