Skip to content

What type to use for filterQuery/updateQuery #850

Closed Answered by hasezoey
wasya243 asked this question in Q&A
Discussion options

You must be logged in to vote

Basically it ensures that fields used for queries are the ones present in order or user. What is the code is gonna be for typegoose case?

the same, replace IOrder or IUser with the class name instead (for these types nor wrapping in DocumentType is needed), at least that is what mongoose is currently set to when you do YourModel.find({}) and hover over the type (if your editor supports that)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hasezoey
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
question Qustions about how to use stuff
2 participants
Converted from issue

This discussion was converted from issue #849 on June 14, 2023 11:22.