Method: RedisGraph#query
- Defined in:
- lib/redisgraph.rb
#query(command) ⇒ Object
Execute a command and return its parsed result
58 59 60 61 62 63 64 |
# File 'lib/redisgraph.rb', line 58 def query(command) resp = @connection.call('GRAPH.QUERY', @graphname, command, '--compact') QueryResult.new(resp, metadata: @metadata) rescue Redis::CommandError => e raise QueryError, e end |