Skip to content

Problem with moongose Types.ObjectId.isValid() Function #32

@KrishnaKalra

Description

@KrishnaKalra

image
This Function will return true for all string of length 12.
Src:
1)https://www.geeksforgeeks.org/how-to-check-if-a-string-is-valid-mongodb-objectid-in-node-js/
2)StackOverflow
We may need to implement our own is Valid Function in future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions