-
Hello, help me please. Here is sample code:
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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
the same, replace |
Beta Was this translation helpful? Give feedback.
-
Okey, thank you |
Beta Was this translation helpful? Give feedback.
the same, replace
IOrder
orIUser
with the class name instead (for these types nor wrapping inDocumentType
is needed), at least that is what mongoose is currently set to when you doYourModel.find({})
and hover over the type (if your editor supports that)