ArangoXEcto.schema_type

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

Specs

schema_type(atom()) :: :document | :edge | nil

Returns the type of a module

This is just a shortcut to using is_edge/1 and is_document/1. If it is neither nil is returned.

Examples

A real edge schema

iex> ArangoXEcto.schema_type(MyApp.RealEdge)
:edge

Some module that is not an Ecto schema

iex> ArangoXEcto.schema_type(MyApp.RandomModule)
nil