Skip to content

Commit c7a8349

Browse files
committed
Refactor findOptions
1 parent aba2652 commit c7a8349

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

plugins/pluginManager.js

+52-1
Original file line numberDiff line numberDiff line change
@@ -2226,7 +2226,58 @@ var pluginManager = function pluginManager() {
22262226
}
22272227
});
22282228

2229-
var findOptions = ["limit", "sort", "projection", "skip", "hint", "explain", "snapshot", "timeout", "tailable", "batchSize", "returnKey", "maxScan", "min", "max", "showDiskLoc", "comment", "raw", "promoteLongs", "promoteValues", "promoteBuffers", "readPreference", "partial", "maxTimeMS", "collation", "session", "omitReadPreference", "timeoutMode", "timeoutMS"];
2229+
var findOptions = [
2230+
"allowDiskUse",
2231+
"allowPartialResults",
2232+
"authdb",
2233+
"awaitData",
2234+
"batchSize",
2235+
"bsonRegExp",
2236+
"checkKeys",
2237+
"collation",
2238+
"comment",
2239+
"dbName",
2240+
"enableUtf8Validation",
2241+
"explain",
2242+
"fieldsAsRaw",
2243+
"hint",
2244+
"ignoreUndefined",
2245+
"let",
2246+
"limit",
2247+
"max",
2248+
"maxAwaitTimeMS",
2249+
"maxScan",
2250+
"maxTimeMS",
2251+
"min",
2252+
"noCursorTimeout",
2253+
"noResponse",
2254+
"omitReadPreference",
2255+
"oplogReplay",
2256+
"partial",
2257+
"projection",
2258+
"promoteBuffers",
2259+
"promoteLongs",
2260+
"promoteValues",
2261+
"raw",
2262+
"readConcern",
2263+
"readPreference",
2264+
"retryWrites",
2265+
"returnKey",
2266+
"serializeFunctions",
2267+
"session",
2268+
"showDiskLoc",
2269+
"showRecordId",
2270+
"singleBatch",
2271+
"skip",
2272+
"snapshot",
2273+
"sort",
2274+
"tailable",
2275+
"timeout",
2276+
"timeoutMode",
2277+
"timeoutMS",
2278+
"useBigInt64",
2279+
"willRetryWrite"
2280+
];
22302281

22312282
countlyDb._collection_cache = {};
22322283
//overwrite some methods

0 commit comments

Comments
 (0)