ArangoXEcto.get_id_from_module

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

get_id_from_module(module, key)

View Source

Specs

get_id_from_module(Ecto.Schema.t(), binary()) :: binary()

Gets an ID from a module and a key

Parameters

  • module - Module to get the collection name from
  • key - The _key to use in the id

Example

iex> ArangoXEcto.get_id_from_module(User, "123456")
"users/123456"