You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/02/18 09:01:00 UTC

[jira] [Commented] (CAMEL-20411) camel-mongodb: Add findAndModify Operation

    [ https://issues.apache.org/jira/browse/CAMEL-20411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17818262#comment-17818262 ] 

Claus Ibsen commented on CAMEL-20411:
-------------------------------------

You are welcome to work on this

> camel-mongodb: Add findAndModify Operation
> ------------------------------------------
>
>                 Key: CAMEL-20411
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20411
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mongodb
>            Reporter: John Poth
>            Priority: Minor
>             Fix For: 4.x
>
>
> Seems like it's implemented in three methods in the underlying MangoDB driver Java API: [findOneAndUpdate|https://github.com/mongodb/mongo-java-driver/blob/master/driver-sync/src/main/com/mongodb/client/MongoCollection.java#L1529], [findOneAndReplace|https://github.com/mongodb/mongo-java-driver/blob/master/driver-sync/src/main/com/mongodb/client/MongoCollection.java#L1452], [findOneAndDelete|https://github.com/mongodb/mongo-java-driver/blob/master/driver-sync/src/main/com/mongodb/client/MongoCollection.java#L1397].
> I think it would make sense to mirror that and add three [_MongoDbOperations_|https://github.com/apache/camel/blob/main/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbOperation.java#L19] in Camel.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)