We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a3447 commit c5a35bbCopy full SHA for c5a35bb
src/expressions/operations/math.ts
@@ -58,7 +58,11 @@ class UnaryMathOp extends MathOp {
58
* @internal
59
*/
60
public getCypher(env: CypherEnvironment): string {
61
- const exprStr = this.exprs[0].getCypher(env);
+ const expr = this.exprs[0];
62
+ if (!expr) {
63
+ throw new Error("Error in Cypher.minus, expr is not defined");
64
+ }
65
+ const exprStr = expr.getCypher(env);
66
67
return `${this.operator}${exprStr}`;
68
}
0 commit comments