@@ -30,18 +30,6 @@ const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
3030 * @group Clauses
3131 */
3232export type BuildConfig = Partial < {
33- /** Defines the default operator for adding multiple labels in a Pattern. Defaults to `":"`
34- *
35- * If the target Cypher is version 5 or above, `"&"` is recommended
36- *
37- * @example
38- * `MATCH (this:Movie:Film)`
39- * `MATCH (this:Movie&Film)`
40- *
41- * @deprecated This will be removed in the following major release and the value `"&"` will be used in the generated Cypher
42- *
43- */
44- labelOperator : ":" | "&" ;
4533 /** Will prefix generated queries with the Cypher version
4634 * @example `CYPHER 5`
4735 */
@@ -85,11 +73,10 @@ export abstract class Clause extends CypherASTNode {
8573
8674 /** Compiles a clause into Cypher and params */
8775 public build ( config ?: BuildConfig ) : CypherResult {
88- const { prefix, extraParams = { } , labelOperator = ":" , cypherVersion, unsafeEscapeOptions = { } } = config ?? { } ;
76+ const { prefix, extraParams = { } , cypherVersion, unsafeEscapeOptions = { } } = config ?? { } ;
8977
9078 if ( this . isRoot ) {
9179 const env = this . getEnv ( prefix , {
92- labelOperator,
9380 cypherVersion,
9481 unsafeEscapeOptions,
9582 } ) ;
@@ -104,7 +91,7 @@ export abstract class Clause extends CypherASTNode {
10491 }
10592 const root = this . getRoot ( ) ;
10693 if ( root instanceof Clause ) {
107- return root . build ( { prefix, extraParams, labelOperator , cypherVersion, unsafeEscapeOptions } ) ;
94+ return root . build ( { prefix, extraParams, cypherVersion, unsafeEscapeOptions } ) ;
10895 }
10996 throw new Error ( `Cannot build root: ${ root . constructor . name } ` ) ;
11097 }
0 commit comments