Package | Description |
---|---|
org.springframework.data.mongodb.core.query |
MongoDB specific query and update support.
|
Modifier and Type | Method and Description |
---|---|
Field |
Field.FieldProjectionExpression.as(String name)
Set the name to be used in the result and return a
Field . |
Field |
Field.elemMatch(String field,
Criteria elemMatchCriteria) |
Field |
Field.exclude(String... fields)
Exclude one or more
fields from being returned by the query operation. |
Field |
Field.exclude(String field)
Exclude a single
field from being returned by the query operation. |
Field |
Query.fields() |
Field |
Field.include(String... fields)
Include one or more
fields to be returned by the query operation. |
Field |
Field.include(String field)
Include a single
field to be returned by the query operation. |
Field |
Field.position(String field,
int value)
The array field must appear in the query.
|
Field |
Field.projectAs(MongoExpression expression,
String field)
Project a given
MongoExpression to a field included in the
result. |
Field |
Field.slice(String field,
int size)
Project a
$slice of the array field using the first size elements. |
Field |
Field.slice(String field,
int offset,
int size)
Project a
$slice of the array field using the first size elements starting at
offset . |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.