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

@eugeniop

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)

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