1
0
Fork 0

fix REPLACE syntax, the collection was missing. (#4705)

This commit is contained in:
Wilfried Goesgens 2018-02-28 13:30:37 +01:00 committed by Jan
parent 1d57a46168
commit 756c0dafee
1 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ returned:
```
FOR u IN users
REPLACE u WITH { value: "test" }
IN users
LET previous = OLD
RETURN previous._key
```
@ -134,7 +135,7 @@ documents (without some of their system attributes):
```
FOR u IN users
REPLACE u WITH { value: "test" }
REPLACE u WITH { value: "test" } IN users
LET replaced = NEW
RETURN UNSET(replaced, '_key', '_id', '_rev')
```