Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Using mongdb nodejs driver 4 #42

Description

@eugeniop

It looks like in the new driver, the interface of results for an insertMany operation has changed:

callback(null, '' + results.ops[0]._id)

Instead of an array, it is an object. This works:

callback(null, '' + results.insertedIds["0"]._id)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions