Module spring.data.mongodb
Interface ReactiveFindOperation.FindWithProjection<T>
- All Superinterfaces:
ReactiveFindOperation.FindDistinct,ReactiveFindOperation.FindWithQuery<T>,ReactiveFindOperation.TerminatingFind<T>
- All Known Subinterfaces:
ReactiveFindOperation.ReactiveFind<T>
- Enclosing interface:
- ReactiveFindOperation
public static interface ReactiveFindOperation.FindWithProjection<T>
extends ReactiveFindOperation.FindWithQuery<T>, ReactiveFindOperation.FindDistinct
Result type override (optional).
-
Method Summary
Modifier and TypeMethodDescriptionDefine the target type fields should be mapped to.Methods inherited from interface org.springframework.data.mongodb.core.ReactiveFindOperation.FindDistinct
distinctMethods inherited from interface org.springframework.data.mongodb.core.ReactiveFindOperation.FindWithQuery
matching, matching, near
-
Method Details
-
as
Define the target type fields should be mapped to.
Skip this step if you are anyway only interested in the original domain type.- Type Parameters:
R- result type.- Parameters:
resultType- must not be null.- Returns:
- new instance of
ReactiveFindOperation.FindWithProjection. - Throws:
IllegalArgumentException- if resultType is null.
-