Mongodb 蒙哥达骡子
我在mule流中有一个Mongodb查询,如下所示,并将输出目标设置为浮点变量Mongodb 蒙哥达骡子,mongodb,mule,esb,Mongodb,Mule,Esb,我在mule流中有一个Mongodb查询,如下所示,并将输出目标设置为浮点变量 <enricher target="#[flowVars.service]" doc:name="Message Enricher"> <mongo:find-objects-using-query-map config-ref="Mongo_DB" collection="hosts" doc:name="query hosts"> <mongo:query-a
<enricher target="#[flowVars.service]" doc:name="Message Enricher">
<mongo:find-objects-using-query-map config-ref="Mongo_DB" collection="hosts" doc:name="query hosts">
<mongo:query-attributes>
<mongo:query-attribute key="id">45</mongo:query-attribute>
</mongo:query-attributes>
</mongo:find-objects-using-query-map>
</enricher>
您可以在
MEL
中使用JsonPath
来查询JSON消息有效载荷
,以便像这样进行过滤或充实#[JSON:domain]
{ "_id" : { "$oid" : "57e230df56a0750c39ad395d"} , "id" : "45" , "domain" : "www.abc.com" , "port" : "80" , "path" : "posts/1"}