PDA

View Full Version : MONGODB - findAndModify



gembler
Jul 21st, 2011, 04:45 AM
HI!

I hava a question:

Does MongoTemplate support findAndModify?
Is there any way to do an operation in Spring Data for MongoDB that is equal to this operation below in MongoDB Java Driver?


myColl.findAndModify(query, null, null, false, update, true, true);

Thanks in advance!

justhamade
Aug 29th, 2011, 06:39 PM
Looks like it does not right now
https://issues.springsource.org/browse/DATADOC-234?page=com.atlassian.streams.streams-jira-plugin%3Aactivity-stream-issue-tab

Oliver Gierke
Aug 30th, 2011, 05:42 AM
Ack, progress is tracked in the just mentioned ticket. Feel free to vote for it in case you think it should bump up in the priority list.