Open
Description
/**
* GRAPH.EXPLAIN
*
* Constructs a query execution plan but does not run it.
*
* Inspect this execution plan to better understand how your query will get executed.
*
* https://oss.redislabs.com/redisgraph/commands/#graphexplain
*
* @param {string} [query] cypher query
* @return String representation of a query execution plan
* @example
*
* graph.explain("MATCH (p:president)-[:born]->(h:state {name:'Hawaii'}) RETURN p");
*/
explain(query: string) {
return this._sendCommand("GRAPH.EXPLAIN", [this._graphId, query]).then(res => {
return new ResultSet(res);
});
}