View Source ArangoXEcto.Types.GeoJSON (ArangoX Ecto v1.3.1)

Defines a GeoJSON type for use in ecto schemas

This will handle conversion of a Geo struct into a map for storage in the database.

Use as the type of a field in an Ecto schema. For example:

schema "users" do
  field :location, ArangoXEcto.Types.GeoJSON
end

Link to this section Summary

Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Link to this section Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.