dgraph_ex v0.1.0 DgraphEx.Types View Source

Link to this section Summary

Link to this section Functions

Link to this function error_message_by_type(type) View Source
Link to this function is_any_of?(types, value) View Source

Examples:

iex> DgraphEx.Types.is_any_of?([:int, :string], “Beef”) true

iex> DgraphEx.Types.is_any_of?([:float, :int], “Beef”) false

Examples:

iex> DgraphEx.Types.validate(:geo, [1.0, 0.1]) :ok

iex> DgraphEx.Types.validate(:geo, [[1.0, 0.1]]) :ok

iex> DgraphEx.Types.validate(:geo, nil)