Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of query validation #216

Open
guptaashwanee opened this issue Jul 7, 2024 · 0 comments
Open

Implementation of query validation #216

guptaashwanee opened this issue Jul 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@guptaashwanee
Copy link

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.

@aravindnc aravindnc added the enhancement New feature or request label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants