FindOneAndUpdate command in reactive mongo.

51 views
Skip to first unread message

mahadiho...@gmail.com

unread,
Sep 13, 2020, 2:14:04 AM9/13/20
to ReactiveMongo - http://reactivemongo.org

Hi,
I found there is the absence of `findOneAndUpdate ` in reactive mongo, this command has nice projection feature which can be used in different nice purpose. We know that in mongodb 4.4 in this projection can used like aggregate $project which is very power full tool.
Is there any way in reactive mongo to create raw command of (findOneAndUpdate) as aggregate (where we can make raw stage if that does not exists )  so that we can use  this ?

Cédric Chantepie

unread,
Sep 13, 2020, 7:41:57 AM9/13/20
to ReactiveMongo - http://reactivemongo.org
findOneAndUpdate is MongoShell method, not a raw command at driver level.

If you have a look at the documentation, you will find details about aggregation at driver level (including raw aggregation stage).

mahadiho...@gmail.com

unread,
Sep 13, 2020, 9:46:03 AM9/13/20
to ReactiveMongo - http://reactivemongo.org
Thanks a lot.
Reply all
Reply to author
Forward
0 new messages