AshNeo4j.Type.Point (AshNeo4j v0.7.0)

Copy Markdown View Source

Ash type for a Neo4j Point. v1 supports WGS-84 2D only.

Wraps Bolty.Types.Point — values persist as native Neo4j Point properties via bolty's PackStream Point packer.

attribute :location, AshNeo4j.Type.Point

Place |> Ash.create!(%{
  name: "Sydney CBD",
  location: Bolty.Types.Point.create(:wgs_84, 151.2093, -33.8688)
})

See ash_neo4j#45 for the v1 scope and future CRSs (Cartesian 2D/3D, WGS-84 3D).

Summary

Functions

handle_change?()

prepare_change?()