Skip to content

Commit 8a7259a

Browse files
Merge pull request #264 from terminusdb/add_method_to_Var
This may fix arithmetic operations
2 parents 464e18a + e499600 commit 8a7259a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/query/woqlDoc.js

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ function convert(obj) {
7272
*/
7373
function Var(name) {
7474
this.name = name;
75+
this.json = function () {
76+
return {
77+
'@type': 'Value',
78+
variable: this.name,
79+
};
80+
};
7581
}
7682

7783
/**

0 commit comments

Comments
 (0)