Module spring.data.mongodb
Interface ReactiveFindOperation.FindWithCollection<T>
- All Superinterfaces:
ReactiveFindOperation.FindWithQuery<T>,ReactiveFindOperation.TerminatingFind<T>
- All Known Subinterfaces:
ReactiveFindOperation.ReactiveFind<T>
- Enclosing interface:
- ReactiveFindOperation
public static interface ReactiveFindOperation.FindWithCollection<T>
extends ReactiveFindOperation.FindWithQuery<T>
Collection override (optional).
-
Method Summary
Modifier and TypeMethodDescriptioninCollection(String collection) Explicitly set the name of the collection to perform the query on.Methods inherited from interface org.springframework.data.mongodb.core.ReactiveFindOperation.FindWithQuery
matching, matching, near
-
Method Details
-
inCollection
Explicitly set the name of the collection to perform the query on.
Skip this step to use the default collection derived from the domain type.- Parameters:
collection- must not be null nor empty.- Returns:
- new instance of
ReactiveFindOperation.FindWithProjection. - Throws:
IllegalArgumentException- if collection is null.
-