Missing callback typings for insertOne method

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • legacy-4.0.1
    • Affects Version/s: None
    • Component/s: None
    • 0
    • 2
    • Not Needed
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • 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));

              Assignee:
              Bailey Pearson
              Reporter:
              Lukas Steuer
              Bailey Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: