We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPDATE has the possibility to directly work with a single document:
UPDATE
'UPDATE "dave" WITH { friends: []) } IN persons'
However, while one may use the variable emitted by a surrounding for loop:
FOR user IN users FILTER user._key == "7" UPDATE user WITH { friends: PUSH(user.friends, "8") } IN users
OLD may only be used in the RETURN statement:
OLD
RETURN
'UPDATE "dave" WITH { friends: PUSH(DOCUMENT("persons/dave").friends, 8) } IN persons'
should be expressable like this:
'UPDATE "dave" WITH { friends: PUSH(OLD.friends, 8) } IN persons'
The text was updated successfully, but these errors were encountered:
https://www.arangodb.com/docs/devel/aql/data-queries.html#using-old-and-new-in-the-same-query OLD and NEW now supported.
Sorry, something went wrong.
No branches or pull requests
UPDATE
has the possibility to directly work with a single document:However, while one may use the variable emitted by a surrounding for loop:
OLD
may only be used in theRETURN
statement:should be expressable like this:
The text was updated successfully, but these errors were encountered: