mirror of https://gitee.com/bigwinds/arangodb
use limit parameter
This commit is contained in:
parent
c36b959c69
commit
9a3c5c4277
|
@ -469,7 +469,6 @@ ArangoCollection.prototype.removeByExample = function (example,
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
shards.forEach(function (shard) {
|
shards.forEach(function (shard) {
|
||||||
ArangoClusterComm.asyncRequest("put",
|
ArangoClusterComm.asyncRequest("put",
|
||||||
"shard:" + shard,
|
"shard:" + shard,
|
||||||
|
@ -478,7 +477,8 @@ ArangoCollection.prototype.removeByExample = function (example,
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
collection: shard,
|
collection: shard,
|
||||||
example: example,
|
example: example,
|
||||||
waitForSync: waitForSync
|
waitForSync: waitForSync,
|
||||||
|
limit: limit || undefined
|
||||||
}),
|
}),
|
||||||
{ },
|
{ },
|
||||||
options);
|
options);
|
||||||
|
@ -570,7 +570,8 @@ ArangoCollection.prototype.replaceByExample = function (example,
|
||||||
collection: shard,
|
collection: shard,
|
||||||
example: example,
|
example: example,
|
||||||
newValue: newValue,
|
newValue: newValue,
|
||||||
waitForSync: waitForSync
|
waitForSync: waitForSync,
|
||||||
|
limit: limit || undefined
|
||||||
}),
|
}),
|
||||||
{ },
|
{ },
|
||||||
options);
|
options);
|
||||||
|
@ -666,7 +667,8 @@ ArangoCollection.prototype.updateByExample = function (example,
|
||||||
example: example,
|
example: example,
|
||||||
newValue: newValue,
|
newValue: newValue,
|
||||||
waitForSync: waitForSync,
|
waitForSync: waitForSync,
|
||||||
keepNull: keepNull
|
keepNull: keepNull,
|
||||||
|
limit: limit || undefined
|
||||||
}),
|
}),
|
||||||
{ },
|
{ },
|
||||||
options);
|
options);
|
||||||
|
|
Loading…
Reference in New Issue