Uses of Class
org.springframework.data.mongodb.core.query.Field
Package
Description
MongoDB specific query and update support.
-
Uses of Field in org.springframework.data.mongodb.core.query
Modifier and TypeMethodDescriptionSet the name to be used in the result and return aField
.Exclude a singlefield
from being returned by the query operation.Exclude one or morefields
from being returned by the query operation.Query.fields()
Include a singlefield
to be returned by the query operation.Include one or morefields
to be returned by the query operation.The array field must appear in the query.Field.projectAs
(MongoExpression expression, String field) Project a givenMongoExpression
to afield
included in the result.Project a$slice
of the arrayfield
using the firstsize
elements.Project a$slice
of the arrayfield
using the firstsize
elements starting atoffset
.