Operation mapping
- •mongo:find-documents → mongoTemplate.find(query, type, collection)
- •mongo:insert-document → mongoTemplate.insert(doc, collection)
- •mongo:update-documents → mongoTemplate.updateMulti(query, update, collection)
- •mongo:remove-documents → mongoTemplate.remove(query, collection)
- •mongo:count-documents → mongoTemplate.count(query, collection)
Before and after
<mongo:find-documents config-ref="Mongo_Config" collectionName="orders"/>Query query = new Query(Criteria.where("status").is("OPEN"));
List<Document> docs = mongoTemplate.find(query, Document.class, "orders");How the conversion is validated
MongoDB is verified against a real MongoDB instance in a container — the converted app queries the actual database and responses are compared field-by-field.
