Spring MongoDb Update nested object
Hello I would like use this mongo query in spring to change type fields from string to double: db.getCollection("data").update( { "location.latitude": { $type: 2 }, "location.longitude": { $type: 2 } }, [{ $set: { "location.latitude": { $toDouble: "$geolocation.latitude" }, "location.longitude": { $toDouble: "$geolocation.longitude" } } }] ) Model: data class Data( @Id val id: ObjectId,… Read More Spring MongoDb Update nested object