-
Type: Bug
-
Resolution: Won't Do
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.3.2, 3.7.0
-
Component/s: Core
-
Environment:Window 10
The following code will raise MongoError: no such command: 'lsid
OS: Windows 10
MongoDB Version: 4.0.10
NodeJs Driver Version: 3.3.2
// code placeholder const MongoClient = require('mongodb').MongoClient; const url = 'mongodb://localhost:27017'; MongoClient.connect(url, async function(err, client) { assert.equal(null, err); const db = client.db("test"); const rst=await db.collection("testCollection").aggregate([]).clone().toArray(); //raise error, UnhandledPromiseRejectionWarning: MongoError: no such command: 'lsid console.log(rst.length) client.close(); });