Type alias Params<Q>

Params<Q>: { [ K in ParamNames<Q>[number]]: unknown }

Get parameters from a Cypher query.

Example

type Q = "MATCH (n:Person {name: $name})-[:ACTED_IN]->(m:Movie {title: $title}) RETURN n.`$id`, m";
type P = Params<Q>;
// ^? type P = { name: unknown; title: unknown; }

Type Parameters

  • Q extends string

Generated using TypeDoc