Skip to content

Type casting to ObjectID? #2

@craigspaeth

Description

@craigspaeth

Joi does implicit type casting for things like Date. I find myself wanting this plugin to type cast a 24 char alphanumeric string into a require('mongodb').ObjectID. I'm not sure if it makes sense to include mongodb-native as a dependency of this project to do that, but I thought I would throw the idea out there.

If that sounds like something you're interested in I would be happy to submit a pull request for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions