struct Redis::Graph::Node

Overview

Represents a node in the graph.

result = graph.read_query(<<-CYPHER)
  MATCH (u:User)
  RETURN u
CYPHER

result.each do |(user)|
  user = user.as(Redis::Graph::Node)
  # ...
end

Defined in:

graph/node.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.from_redis_graph_value(type : ValueType, value, cache : Cache) #

[View source]
def self.matches_redis_graph_type?(type : Redis::Graph::ValueType) : Bool #

[View source]

Instance Method Detail

def id : Int64 #

[View source]
def labels : Array(String) #

[View source]
def properties : Hash(String, Value) #

[View source]