(edited from original)
According to the docs:
Each UPDATE operation is restricted to a single collection, and the
collection name must not be dynamic. Only a single UPDATE statement
per collection is allowed per AQL query, and it cannot be followed by
read or write operations that access the same collection, by traversal
operations, or AQL functions that can read documents.
In order to trigger a transaction you need to do so explicitly.
There are no individual BEGIN, COMMIT or ROLLBACK transaction commands
in ArangoDB. Instead, a transaction in ArangoDB is started by
providing a description of the transaction to the
db._executeTransaction JavaScript function:
db._executeTransaction(description);
For example:
db._executeTransaction({
collections: {
write: [ "users", "logins" ],
read: [ "recommendations" ]
}
});
So, to answer the question, you need to use a client library to trigger a transaction as it will not happen automatically.
That being said, the main benefit of document/graph databases is the horizontal scaling, sharding, and cluster abilities. If you absolutely need to rely on transactions you might want to rethink why you are using a document based database. Eventual Consistency is typically good enough for a lot of use cases but in other cases you absolutely need ACID. A blog probably doesn't need ACID.