Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GRAPH.EXPLAIN #11

Open
DenisCarriere opened this issue Feb 20, 2019 · 0 comments
Open

Add support for GRAPH.EXPLAIN #11

DenisCarriere opened this issue Feb 20, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@DenisCarriere
Copy link

/**
 * 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);
	});
}
@gkorland gkorland added the enhancement New feature or request label Feb 21, 2019
@gkorland gkorland self-assigned this Feb 21, 2019
@gkorland gkorland assigned leibale and unassigned gkorland Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants