How to use the SECONDARY function from mongodb
Find comprehensive JavaScript mongodb.SECONDARY code examples handpicked from public code repositorys.
3170 3171 3172 3173 3174 3175 3176 3177 3178 3179
.all() .forEach(call => { if (call.args[0].ns.collection.indexOf('GraphQLClass') >= 0) { foundGraphQLClassReadPreference = true; expect(call.args[0].options.readPreference.mode).toBe( ReadPreference.SECONDARY ); } else if (call.args[0].ns.collection.indexOf('_User') >= 0) { foundUserClassReadPreference = true; expect(call.args[0].options.readPreference.mode).toBe(
0
0
1
+ 13 other calls in file
mongodb.ObjectId is the most popular function in mongodb (5685 examples)