From 9a3c5c4277076f982ccc4bea7b46e3df14f4fafa Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 6 Feb 2014 13:10:04 +0100 Subject: [PATCH] use limit parameter --- js/server/modules/org/arangodb/arango-collection.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/server/modules/org/arangodb/arango-collection.js b/js/server/modules/org/arangodb/arango-collection.js index b5a5fd9615..a9cf2cf836 100644 --- a/js/server/modules/org/arangodb/arango-collection.js +++ b/js/server/modules/org/arangodb/arango-collection.js @@ -468,7 +468,6 @@ ArangoCollection.prototype.removeByExample = function (example, throw err; } - shards.forEach(function (shard) { ArangoClusterComm.asyncRequest("put", @@ -478,7 +477,8 @@ ArangoCollection.prototype.removeByExample = function (example, JSON.stringify({ collection: shard, example: example, - waitForSync: waitForSync + waitForSync: waitForSync, + limit: limit || undefined }), { }, options); @@ -570,7 +570,8 @@ ArangoCollection.prototype.replaceByExample = function (example, collection: shard, example: example, newValue: newValue, - waitForSync: waitForSync + waitForSync: waitForSync, + limit: limit || undefined }), { }, options); @@ -666,7 +667,8 @@ ArangoCollection.prototype.updateByExample = function (example, example: example, newValue: newValue, waitForSync: waitForSync, - keepNull: keepNull + keepNull: keepNull, + limit: limit || undefined }), { }, options);