A single row in a NebulaGraphEx.ResultSet.
Values are decoded Elixir terms — not raw Thrift tuples. Use get/2 to
access a column by name, or get!/2 to raise if the column is absent.
Example
{:ok, rs} = NebulaGraphEx.Graph.query(conn, "MATCH (v:Player) RETURN v.name, v.age")
records = NebulaGraphEx.ResultSet.rows(rs)
Enum.map(records, fn record ->
name = NebulaGraphEx.Record.get!(record, "v.name")
age = NebulaGraphEx.Record.get(record, "v.age")
%{name: name, age: age}
end)
Summary
Functions
Returns {:ok, value} if the column exists, {:error, :not_found} otherwise.
Returns the decoded value for the given column name, or nil if the column
does not exist in this record.
Returns the decoded value for name, raising KeyError if the column is
not present.
Converts the record to a plain map keyed by column name.
Types
Functions
Returns {:ok, value} if the column exists, {:error, :not_found} otherwise.
Returns the decoded value for the given column name, or nil if the column
does not exist in this record.
Returns the decoded value for name, raising KeyError if the column is
not present.
Converts the record to a plain map keyed by column name.
Example
NebulaGraphEx.Record.to_map(record)
#=> %{"v.name" => "Tim Duncan", "v.age" => 42}