Skip to content

Commit 20929b3

Browse files
michael-simonsodrotbohm
authored andcommitted
DATAMONGO-1662 - Fix classname in reference docs about projections in aggregations.
Original pull request: spring-projects#455.
1 parent 782bcd4 commit 20929b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/asciidoc/reference/mongodb.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ Note that the aggregation operations not listed here are currently not supported
17041704
[[mongo.aggregation.projection]]
17051705
=== Projection Expressions
17061706

1707-
Projection expressions are used to define the fields that are the outcome of a particular aggregation step. Projection expressions can be defined via the `project` method of the `Aggregate` class either by passing a list of ``String``'s or an aggregation framework `Fields` object. The projection can be extended with additional fields through a fluent API via the `and(String)` method and aliased via the `as(String)` method.
1707+
Projection expressions are used to define the fields that are the outcome of a particular aggregation step. Projection expressions can be defined via the `project` method of the `Aggregation` class either by passing a list of ``String``'s or an aggregation framework `Fields` object. The projection can be extended with additional fields through a fluent API via the `and(String)` method and aliased via the `as(String)` method.
17081708
Note that one can also define fields with aliases via the static factory method `Fields.field` of the aggregation framework that can then be used to construct a new `Fields` instance. References to projected fields in later aggregation stages are only valid by using the field name of included fields or their alias of aliased or newly defined fields. Fields not included in the projection cannot be referenced in later aggregation stages.
17091709

17101710
.Projection expression examples

0 commit comments

Comments
 (0)