mirror of https://gitee.com/bigwinds/arangodb
fixed simple query on _key field
This commit is contained in:
parent
a6d06b9976
commit
532bf7c033
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue