Skip to content

Timeout when using mongoose-id-validator #40

@oliviervanbulck

Description

@oliviervanbulck

I'm trying to implement mongoose-id-validator in a NestJS project. When I do, the creation of the object gives me a timeout of more than 5 seconds, both when the IDs are valid and when they are not valid.

import * as idValidator from 'mongoose-id-validator';

EventSchema.plugin(idValidator);

{type: [mongoose.Schema.Types.ObjectId], required: true, ref: 'User'}

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