gnodet commented on PR #31340:
URL: https://github.com/apache/camel/pull/31340#issuecomment-7409043737

   **On the toJavaValue conversion:**
   
   The `toJavaValue()` method cleverly uses MongoDB's `DocumentCodec` to 
convert BSON values to their Java equivalents (Integer, Long, Date, ObjectId, 
String, etc.). This is safer than manual type conversion and handles all BSON 
types consistently.
   
   Wrapping the value in a temporary `BsonDocument` and decoding it is a clean 
pattern that leverages the driver's existing serialization logic.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to