Update on this subject: Since ArangoDB 2.4 you can get a newly inserted document (or documents) even with an AQL query.
In previous versions of ArangoDB 2.3, the syntax for a single INSERT document was as follows:
INSERT { value: 1 } IN collection
without the ability to get system attributes ( _key, _revetc.) for the document just inserted. Starting from 2.4, the following is also possible:
INSERT { value: 1 } IN collection LET result = NEW RETURN result
, (value ) .
, .
FOR i IN 1..10
INSERT { value: i } IN collection
FOR i IN 1..10
INSERT { value: i } IN collection LET result = NEW RETURN result
.