Vars<Q>: ParseVars<ParseClauses<Q>>

Get living variables with their types from a Cypher query

Example

type Q = "PROFILE MATCH (person:Person)-[r]->(other:Person:Public {prop: 123}) WITH *, r AS x, type(r) AS types RETURN *";
type V = Vars<Q>;
// ^? type V = {
// person: Node;
// other: Node;
// r: Relationship;
// x: Relationship;
// types: Unknown;
// }

Type Parameters

  • Q extends string

Generated using TypeDoc