mongodb-cross-cursor
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -22,11 +22,25 @@ "use strict"; | ||
session.endSession(); | ||
const cmd = yield db.command({ | ||
const symbolsProperties = Object.getOwnPropertySymbols(castedFind); | ||
const kFilter = symbolsProperties.find(symbol => symbol.description === "filter"); | ||
const kBuiltOptions = symbolsProperties.find(symbol => symbol.description === "builtOptions"); | ||
const filter = castedFind[kFilter]; | ||
const builtOptions = castedFind[kBuiltOptions]; | ||
const _commandOptions = { | ||
find: cloned.namespace.collection, | ||
filter: cloned.filter, | ||
filter: filter, | ||
batchSize: 0, | ||
hint: cloned.hint, | ||
sort: cloned.sort, | ||
skip: cloned.skip, | ||
limit: cloned.limit | ||
}, { | ||
}; | ||
if (builtOptions.hint) { | ||
_commandOptions.hint = builtOptions.hint; | ||
} | ||
if (builtOptions.sort) { | ||
_commandOptions.sort = builtOptions.sort; | ||
} | ||
if (builtOptions.skip) { | ||
_commandOptions.skip = builtOptions.skip; | ||
} | ||
if (builtOptions.limit) { | ||
_commandOptions.limit = builtOptions.limit; | ||
} | ||
const cmd = yield db.command(_commandOptions, { | ||
session: (0, utils_1.fakeSessionBuilder)(sessionId) | ||
@@ -33,0 +47,0 @@ }); |
{ | ||
"name": "mongodb-cross-cursor", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"author": "Baptiste Jamin <baptiste@crisp.chat> (https://crisp.chat)", | ||
@@ -5,0 +5,0 @@ "description": "A mongodb driver extension allowing to consume MongoDB cursors accross multiple instances", |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
16041
11
196
1
100