You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, currently when trying to apply comment to a findOneAndUpdate query it results in an error of:
comment cannot be used with findOneAndUpdate
The exact query I am trying: this.quoteModel.findOneAndUpdate( { _id: new mongoose.Types.ObjectId(quoteId) }, newQuoteObj, { upsert: true, session}, ).comment("abcde");
Hi, currently when trying to apply comment to a findOneAndUpdate query it results in an error of:
comment cannot be used with findOneAndUpdate
The exact query I am trying:
this.quoteModel.findOneAndUpdate( { _id: new mongoose.Types.ObjectId(quoteId) }, newQuoteObj, { upsert: true, session}, ).comment("abcde");
When looking into the documentation of findAnyModify I see that comment is supported:
https://www.mongodb.com/docs/manual/reference/command/findAndModify/
The text was updated successfully, but these errors were encountered: