Relatex.Result (relatex v0.2.0)

Copy Markdown View Source

An ordered list of column names and rows from one Cypher statement.

Each row follows the column order. namespace is the resolved graph name. query_type is the engine's classification ("r", "w", "rw", or "s").

Null, boolean, integer, string, list, and map cells use the corresponding Elixir values (Cypher null is nil). Map keys and identifiers remain binaries. Finite floats use Elixir floats. Non-finite floats use {:float, :nan | :infinity | :negative_infinity}.

Graph entities use {:node, fields}, {:relationship, fields}, and {:path, %{elements: elements}}. Node fields include :id, :element_id, :labels, and :properties. Relationships include their type, properties, identity, and start/end IDs. Paths preserve traversal order.

Dates, local/zoned times and datetimes, durations, points and vectors use tagged tuples with component maps. Temporal components preserve nanoseconds, points carry their SRID, and vectors carry their coordinate dtype.

Summary

Types

t()

@type t() :: %Relatex.Result{
  columns: [String.t()],
  namespace: String.t(),
  query_type: String.t(),
  rows: [[term()]]
}