ArangoXEcto.get_id_from_struct
You're seeing just the function
get_id_from_struct
, go back to ArangoXEcto module for more information.
Specs
Gets an ID from a schema struct
Parameters
struct
- The Ecto struct
Example
If the User schema's collection name is users
the following would be:
iex> user = %User{id: "123456"}
%User{id: "123456"}
iex> ArangoXEcto.get_id_from_struct(user)
"users/123456"