-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
What problem are you facing?
It is not possible to use the insertOne method with a callback, because the typing in the mongo-legacy.d.ts is missing.
What driver and relevant dependency versions are you using?
mongo-legacy 4.0.0
Steps to reproduce?
this.db.collection(this.collection).insertOne(entity, (err, _) => cb(err, entity as T));