ArangoXEcto.Migration.collection

You're seeing just the function collection, go back to ArangoXEcto.Migration module for more information.
Link to this function

collection(collection_name, type \\ :document)

View Source

Specs

collection(String.t(), atom()) :: ArangoXEcto.Migration.Collection.t()

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)