Is there a way to modify the id of all documents in a Mongo collection with spring mongo?
Trying this in many ways I got error messages like:
the (immutable) field '_id' was found to have been altered to _id
or
Write errors:…
Following is structure of my mongo document and I want to search all such documents for which w is true.
w is key of first element in array cd
/* 1 */
{
"_id" : ObjectId("55cc9bd9e4b07c05e5812de7"),
"_class" : "com.test.MyClass",
…