ArangoXEcto.get_id_from_module
You're seeing just the function
get_id_from_module
, go back to ArangoXEcto module for more information.
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 fromkey
- The_key
to use in the id
Example
iex> ArangoXEcto.get_id_from_module(User, "123456")
"users/123456"