From 532bf7c0339ec40c00d158a30663596d8ffc8561 Mon Sep 17 00:00:00 2001 From: Frank Celler Date: Thu, 28 Mar 2013 11:23:11 +0100 Subject: [PATCH] fixed simple query on _key field --- js/server/modules/org/arangodb/simple-query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/server/modules/org/arangodb/simple-query.js b/js/server/modules/org/arangodb/simple-query.js index 34e30e3918..07a1588e5d 100644 --- a/js/server/modules/org/arangodb/simple-query.js +++ b/js/server/modules/org/arangodb/simple-query.js @@ -112,7 +112,7 @@ function byExample (collection, example, skip, limit) { if (example[k] === null) { unique = false; } - else if (k === '_id') { + else if (k === '_id' || k === '_key') { // example contains the document id in attribute "_id" documentId = example[k]; break;