Interface ExecutableFindOperation

All Known Subinterfaces:
FluentMongoOperations, MongoOperations
All Known Implementing Classes:
MongoTemplate

public interface ExecutableFindOperation
ExecutableFindOperation allows creation and execution of MongoDB find operations in a fluent API style.
The starting domainType is used for mapping the Query provided via matching into the MongoDB specific representation. By default, the originating domainType is also used for mapping back the result from the Document. However, it is possible to define an different returnType via as to mapping the result.
The collection to operate on is by default derived from the initial domainType and can be defined there via Document. Using inCollection allows to override the collection name for the execution.
     
         query(Human.class)
             .inCollection("star-wars")
             .as(Jedi.class)
             .matching(where("firstname").is("luke"))
             .all();
     
 
Since:
2.0
Author:
Christoph Strobl, Mark Paluch