gnodet commented on PR #31340:
URL: https://github.com/apache/camel/pull/31340#issuecomment-7409040013
**On the collectionIndex type change:**
Nice catch changing the map value type from `String` to `Object`. MongoDB
index specifications use numeric values (1 for ascending, -1 for descending),
so the original `HashMap<String, String>` would have caused issues when Jackson
deserialized `{"field": 1}` as an Integer.
The `LinkedHashMap` preserves insertion order, which is important when users
specify field order in their JSON - though as you noted, the current
implementation creates one index per field rather than a compound index.
--
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]