Answer the question
In order to leave comments, you need to log in
How to overwrite in mongodb without fetch query?
There is
Criteria typeCriteria = Criteria.where("type").is(Type));//type один из вариантов с enum`a
Query query = new Query();
query.addCriteria(typeCriteria);
mongo.findAndReplace(query,state,bdname);
//хотелось бы заменить на просто mongo.save(state, bdname)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question