Skip to content

Commit 90fe680

Browse files
ochrstnsxhinzvc
authored andcommitted
Correct misspellings in documentation
Closes: #4461
1 parent ef7870a commit 90fe680

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/asciidoc/reference/document-references.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Person {
8888
----
8989
Account account = …
9090
91-
tempate.insert(account); <2>
91+
template.insert(account); <2>
9292
9393
template.update(Person.class)
9494
.matching(where("id").is(…))
@@ -441,7 +441,7 @@ class Entity {
441441
"lastname" : "Long", <2>
442442
}
443443
----
444-
<1> Read/wirte the keys `fn` & `ln` from/to the linkage document based on the lookup query.
444+
<1> Read/write the keys `fn` & `ln` from/to the linkage document based on the lookup query.
445445
<2> Use non _id_ fields for the lookup of the target documents.
446446
====
447447

@@ -477,7 +477,7 @@ class ToDocumentPointerConverter implements Converter<ReferencedObject, Document
477477
}
478478
}
479479
----
480-
<1> Read/wirte the keys `_id` from/to the reference document to use them in the lookup query.
480+
<1> Read/write the keys `_id` from/to the reference document to use them in the lookup query.
481481
<2> The collection name can be read from the reference document using its key.
482482
====
483483

src/main/asciidoc/reference/mongo-json-schema.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ embedded schema objects that describe properties and subdocuments.
3333
<2> `required` is a property that describes which properties are required in a document. It can be specified optionally, along with other
3434
schema constraints. See MongoDB's documentation on https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/#available-keywords[available keywords].
3535
<3> `properties` is related to a schema object that describes an `object` type. It contains property-specific schema constraints.
36-
<4> `firstname` specifies constraints for the `firsname` field inside the document. Here, it is a string-based `properties` element declaring
36+
<4> `firstname` specifies constraints for the `firstname` field inside the document. Here, it is a string-based `properties` element declaring
3737
possible field values.
3838
<5> `address` is a subdocument defining a schema for values in its `postCode` field.
3939
====

src/main/asciidoc/reference/mongo-repositories-aggregation.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Therefore, the `Sort` properties are mapped against the methods return type `Per
7171
<4> `$skip`, `$limit` and `$sort` can be passed on via a `Pageable` argument. Same as in <2>, the operators are appended to the pipeline definition. Methods accepting `Pageable` can return `Slice` for easier pagination.
7272
<5> Aggregation methods can return `Stream` to consume results directly from an underlying cursor. Make sure to close the stream after consuming it to release the server-side cursor by either calling `close()` or through `try-with-resources`.
7373
<6> Map the result of an aggregation returning a single `Document` to an instance of a desired `SumValue` target type.
74-
<7> Aggregations resulting in single document holding just an accumulation result like eg. `$sum` can be extracted directly from the result `Document`.
74+
<7> Aggregations resulting in single document holding just an accumulation result like e.g. `$sum` can be extracted directly from the result `Document`.
7575
To gain more control, you might consider `AggregationResult` as method return type as shown in <7>.
7676
<8> Obtain the raw `AggregationResults` mapped to the generic target wrapper type `SumValue` or `org.bson.Document`.
7777
<9> Like in <6>, a single value can be directly obtained from multiple result ``Document``s.

0 commit comments

Comments
 (0)