You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by on...@apache.org on 2018/07/19 10:27:17 UTC

[camel] branch master updated: camel-mongodb3 - short note using

This is an automated email from the ASF dual-hosted git repository.

onders pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new f01eb26  camel-mongodb3 - short note using
f01eb26 is described below

commit f01eb26f692725f9b57cff35a522228b9517991a
Author: önder sezgin <on...@apache.org>
AuthorDate: Thu Jul 19 13:27:14 2018 +0300

    camel-mongodb3 - short note using
    
    MongoDbConstants.CRITERIA while doing update after enrich
---
 components/camel-mongodb3/src/main/docs/mongodb3-component.adoc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc b/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc
index 48d375e..b8a515b 100644
--- a/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc
+++ b/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc
@@ -503,6 +503,12 @@ a update rules.
 You can define the filter using MongoDBConstants.CRITERIA header as `Bson`
 and define the update rules as `Bson` in Body.
 
+NOTE: *Update after enrich* . While defining the filter by using MongoDBConstants.CRITERIA header as `Bson`
+to query mongodb before you do update, you should notice you need to remove it from the resulting camel exchange 
+during aggregation if you use enrich pattern with a aggregation strategy and then apply mongodb update. 
+If you don't remove this header during aggregation and/or redefine MongoDBConstants.CRITERIA header before sending
+camel exchange to mongodb producer endpoint, you may end up with invalid camel exchange payload while updating mongodb. 
+
 The second way Require a
 List<Bson> as the IN message body containing exactly 2 elements: