Question

I´m using mongotemplate.findAndModify, and I was wondering if it is possible to retrieve not just one document, but all of them that fit in with the filters that I put in my Criteria. As I can see in the different method of this class We can put the object that has to cast the result, but in my case that I´m looking for a List I dont know how to make it.

Any idea somebody here?.

Reagards.

Was it helpful?

Solution

I guess I understood your question correctly. As per I know findAndModify modifies and returns just a single document, so no way it can return you a list of documents.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top