camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gramanero <graman...@gmail.com>
Subject Re: How to insert Date String as date in MongoDB
Date Mon, 14 Mar 2016 18:52:54 GMT
Yes I can try that. To make sure I am on the same page is this what you are
asking for?

*Route:*
/<convertBodyTo type="String" />
      <to
uri="mongodb:mongoBean?database=PMA&amp;collection=Elmah&amp;writeResultAsHeader=true&amp;operation=insert"
/>/

*JSON to send:*
/{ "time" : { "$date" : "2016-02-19T17:37:57.673+0000" } }/


Or do think we should not perform the convertBodyTo string?

Thank you for the quick response! I seriously appreciate the attention.




--
View this message in context: http://camel.465427.n5.nabble.com/How-to-insert-Date-String-as-date-in-MongoDB-tp5778310p5779043.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message