View Source ArangoXEcto.Types.GeoJSON (ArangoX Ecto v2.0.0)

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

Summary

Functions

Callback implementation for Ecto.Type.embed_as/1.

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

Functions

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.

equal?(term1, term2)

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