Bolt.Sips v2.0.11 Bolt.Sips.Types View Source

Basic support for representing nodes, relationships and paths belonging to a Neo4j graph database.

Four supported types of entities:

  • Node
  • Relationship
  • UnboundRelationship
  • Path

More details, about the Bolt protocol, here: https://github.com/boltprotocol/boltprotocol/blob/master/README.md

Additionally, since bolt V2, new types appears: spatial and temporal Those are not documented in bolt protocol, but neo4j documentation can be found here: https://neo4j.com/docs/cypher-manual/current/syntax/temporal/ https://neo4j.com/docs/cypher-manual/current/syntax/spatial/

To work with temporal types, the following Elixir structs are available:

  • Time, DateTime, NaiveDateTime
  • Calendar.DateTime to work with timezone (as string)
  • TimeWithTZOffset, DateTimeWithTZOffset to work with (date)time and timezone offset(as integer)
  • Duration

For spatial types, you only need Point struct as it covers:

  • 2D point (cartesian or geographic)
  • 3D point (cartesian or geographic)