dgraph_ex v0.1.0 DgraphEx.Types View Source
Link to this section Summary
Link to this section Functions
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)