Skip to content

Commit

Permalink
Fix syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghislain Fourny committed Jul 24, 2024
1 parent 866906d commit 1ab2e36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(:JIQS: ShouldCrash; ErrorCode="JNUP0006"; ErrorMetadata="LINE:3:COLUMN:22:" :)
copy $je := {"a": 1, "b": 2, "c": 3, "d": 4}
modify (delete $je.a, insert "a" : 10 into $je)
modify (delete json $je.a, insert json "a" : 10 into $je)
return $je

(: selector key already exists in object in snapshot :)
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ copy $je := { "a" : {"foo" : 1}}
modify
let $l := $je.a
return
rename $l.foo as "b"
rename json $l.foo as "b"
return $je

0 comments on commit 1ab2e36

Please sign in to comment.