Skip to content

Implementation of query validation #216

Open
@guptaashwanee

Description

@guptaashwanee

Is your feature request related to a problem? Please describe.
req.query is not not validated now, in req.query.populate if wrong string is passed which is not available in the mongoose schema it gives error

StrictPopulateError: Cannot populate path null because it is not in your schema. Set the strictPopulate option to false to override.

Describe the solution you'd like
We should plan to implement validation library as zod.

Describe alternatives you've considered
Write now I have implemented a custom validation of req.query through zod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions