Skip to content

spread syntax in .find() method in mongoose 7.0.2 #13194

Closed Answered by vkarpov15
fedechaves asked this question in Q&A
Discussion options

You must be logged in to vote

const { min, max, limit, ...others } = req.query; . I suspect that limit is ending up in your query filter. This is due to the strictQuery changes in Mongoose 7.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fedechaves
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants