John Poth created CAMEL-20411: --------------------------------- Summary: 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
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)