lib/redgraph/graph.rb in redgraph-0.2.2 vs lib/redgraph/graph.rb in redgraph-0.2.3

- old
+ new

@@ -97,10 +97,14 @@ end private def _query(cmd) - data = @connection.call("GRAPH.QUERY", graph_name, cmd, "--compact") + data = nil + query = ["GRAPH.QUERY", graph_name, cmd, "--compact"] + ActiveSupport::Notifications.instrument(NOTIFICATIONS_KEY, query: query.join(' ')) do + data = @connection.call(*query) + end QueryResponse.new(data, self) end end end