Closed m0ppers closed 9 years ago
Document keys in ArangoDB should be strings.
-1
(as a number) is not working on the server level, but "-1"
(as a string) is legal.
But the regex /^\w+$/
in Document.php definitely is too restrictive.
fixed in devel, 2.2 and master.
Inserting documents having -1 as _key is perfectly legal. The checks in Document.php (at least there) are wrong.
I don't know however what is legal. Otherwise i would have submitted a PR ;)