Skip to content

Commit 7b5b625

Browse files
committed
Makes value in Cypher.Param writable
1 parent b3cdecc commit 7b5b625

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/petite-taxis-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@neo4j/cypher-builder": patch
3+
---
4+
5+
Makes value of `Cypher.Param` writable so it can be overwritten before the query is built

src/references/Param.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Variable } from "./Variable";
2424
* @group Variables
2525
*/
2626
export class Param<T = unknown> extends Variable {
27-
public readonly value: T;
27+
public value: T;
2828

2929
constructor(value: T) {
3030
super();

0 commit comments

Comments
 (0)