ArangoXEcto.Schema.outgoing

You're seeing just the macro outgoing, go back to ArangoXEcto.Schema module for more information.
Link to this macro

outgoing(name, target, opts \\ [])

View Source (macro)

Defines an outgoing relationship of many objects

Behind the scenes this defines a many to many relationship so that Ecto can load the relationship using the built in functions.

The use of this function MUST be accompanied by a incoming/3 definition in the other target node.

This will also define the __id__ field if it is not already defined so that ecto can map the relationship.

Example

defmodule MyProject.User do
  use ArangoXEcto.Schema

  schema "users" do
    field :name, :string

    # Will use the automatically generated edge
    outgoing :posts, MyProject.Post

    # Will use the UserPosts edge
    outgoing :posts, MyProject.Post, edge: MyProject.UserPosts
  end
end