ArangoXEcto.Migration.collection
You're seeing just the function
collection
, go back to ArangoXEcto.Migration module for more information.
Specs
Creates a collection struct
Used to in functions that perform actions on the database.
Accepts a collection type parameter that can either be :document
or :edge
, otherwise it will
raise an error. The default option is :document
.
Examples
iex> collection("users")
%Collection{name: "users", 2)
iex> collection("users", :edge)
%Collection{name: "users", 3)