MongoError: server xxxxxxxxxx timed out
let cursor = db.collection(program.collection).find({ entities: { media: { $elemMatch: { $or: [ { type: 'video' }, { type: 'photo' } ] } } } }).addCursorFlag('noCursorTimeout',true);
MongoClient.connect(url, { promiseLibrary: Promise, server: { socketOptions: { connectTimeoutMs: 0, socketTimeoutMs: 0 } } })
let url = `mongodb://${program.host}:${program.port}/${program.database}?connectTimeoutMS=999999999999&socketTimeoutMs=999999999999`;
MongoClient.connect(url, { promiseLibrary: Promise, server: { socketOptions: {
connectTimeoutMs: 999999999999, socketTimeoutMs: 999999999999 } } }
let cursor = db.collection(program.collection).find({ entities: { media: { $elemMatch: { $or: [ { type: 'video' }, { type: 'photo' } ] } } } }).addCursorFlag('noCursorTimeout',true);
--
You received this message because you are subscribed to a topic in the Google Groups "node-mongodb-native" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-mongodb-native/GUYklT_ociI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-mongodb-na...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to node-mongodb-native+unsub...@googlegroups.com.