From a3e46710e70d3dd4efc9979b5f09a886f121e4f2 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Wed, 28 Feb 2018 13:29:42 +0100 Subject: [PATCH] fix REPLACE syntax, the collection was missing. (#4703) --- Documentation/Books/AQL/Operations/Replace.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/Books/AQL/Operations/Replace.md b/Documentation/Books/AQL/Operations/Replace.md index 7c945c982f..df6dff6aef 100644 --- a/Documentation/Books/AQL/Operations/Replace.md +++ b/Documentation/Books/AQL/Operations/Replace.md @@ -127,6 +127,7 @@ returned: ``` FOR u IN users REPLACE u WITH { value: "test" } + IN users LET previous = OLD RETURN previous._key ``` @@ -136,7 +137,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') ```