Skip to content

MongoDB find() with String _id gives an error #390

@kolypto

Description

@kolypto

Using the MongoDB driver, when the get() method is given a string, it tries to convert it to ObjectID and gets the following error:

Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters

In fact, there's nothing wrong with plain String _id fields, and this annoying issue prevents us from using orm with such collections.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions