how to get query result ts #10836
zhihengGet
started this conversation in
General
Replies: 1 comment
-
Mongoose 6 does not have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i got following error when trying to access n nmodified ok ...
Property "n" "nModifed" does not exist on type 'UpdateWriteOpResult'.ts(2339)
and are we going to migrate to deletedCount, matchedCount, upsertedCount ....etc from n and nModified ? i remember there was a time query returned matchedCount instead of n but now it is back to n again ...bc i changed mongoose version to latest ?_
or
res.n
res.nModified
res.upserted
my query gives me n and nModifed
mongodb: 4.1
mongoose: lastest
Beta Was this translation helpful? Give feedback.
All reactions