Ayush0612005 commented on PR #30514: URL: https://github.com/apache/camel/pull/30514#issuecomment-7044899046
Thanks, good catch. Done in ea355b8: the helper is now `getBsonListBody`, and `findOneAndUpdate` (without the criteria header) and `aggregate` read their `List` body through it too. `bulkWrite` is left as is, as its body is a List of `WriteModel`, which no text converter produces. `MongoDbProducerListBodyTest` (renamed from `MongoDbProducerUpdateBodyTest`) adds a `byte[]` `findOneAndUpdate` body and a `byte[]` aggregate pipeline. On the previous head, the first fails with the size error, and the second shows that `aggregate` did not fail but received 39 stages for a JSON array of 2, which it would have sent to MongoDB. The 16 producer and converter tests pass. _Claude Code on behalf of Ayush0612005_ -- 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]
