8000 implement cory feedback · nickldp/docs-kotlin@aefeb0e · GitHub
[go: up one dir, main page]

Skip to content

Commit aefeb0e

Browse files
committed
implement cory feedback
1 parent efd3853 commit aefeb0e

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

examples/src/test/kotlin/AggregationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class AggregationTest {
143143
// :snippet-start: build-documents-tip
144144
Document("\$arrayElemAt", listOf("\$categories", 0))
145145
// is equivalent to
146-
val method2 = // :remove
146+
val method2 = // :remove:
147147
Document.parse("{ \$arrayElemAt: ['\$categories', 0] }")
148148
// :snippet-end:
149149
// assert to test equivalency
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
Document("\$arrayElemAt", listOf("\$categories", 0))
22
// is equivalent to
3-
val method2 = // :remove
43
Document.parse("{ \$arrayElemAt: ['\$categories', 0] }")

source/examples/generated/ProjectTest.snippet.exclude-id.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data class FruitName(
33
val name: String
44
)
55

6-
// return all documents with *only* the name field
6+
// Return all documents with *only* the name field
77
// excludes the id
88
val filter = Filters.empty()
99
val projection = Projections.fields(

source/examples/generated/ProjectTest.snippet.project-name.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data class FruitName(
33
val name: String
44
)
55

6-
// return all documents with only the name field
6+
// Return all documents with only the name field
77
val filter = Filters.empty()
88
val projection = Projections.fields(
99
Projections.include(FruitName::name.name)

source/fundamentals/crud/read-operations/sort.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ Methods For Sorting
5757

5858
You can sort results retrieved by a query and you can sort results
5959
within an aggregation pipeline. To sort your query results, use the
60-
``sort()`` method of a ``FindIterable`` instance. To sort your results within an
60+
``sort()`` method of a ``FindFlow`` instance. To sort your results within an
6161
aggregation pipeline, use the ``Aggregates.sort()`` static factory method. Both
6262
of these methods receive objects that implement the ``Bson`` interface as
6363
arguments. For more information, see our API Documentation for the
6464
`BSON interface <{+api+}/apidocs/bson/org/bson/conversions/Bson.html>`__.
6565

66-
You can use the ``sort()`` method of a ``FindIterable`` instance as follows:
66+
You can use the ``sort()`` method of a ``FindFlow`` instance as follows:
6767

6868
.. literalinclude:: /examples/generated/SortTest.snippet.basic-sort.kt
6969
:language: kotlin
@@ -101,7 +101,7 @@ criteria through the ``Sorts`` builder.
101101
For more information about the classes and interfaces in this section, see the
102102
following API Documentation:
103103

104-
- `FindIterable <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/FindIterable.html>`__
104+
- `FindFlow <{+api-kotlin+}/apidocs/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-find-flow/index.html>`__
105105
- `Aggregates <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/Aggregates.html>`__
106106
- `Sorts <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/Sorts.html>`__
107107
- `BSON <{+api+}/apidocs/bson/org/bson/conversions/Bson.html>`__
@@ -336,7 +336,7 @@ The data is modeled with the following Kotlin data class:
336336

337337
The structure of text search has changed for MongoDB 4.4 or later. You no
338338
longer need to project ``Projections.metaTextScore()`` into your
339-
``FindIterable`` instance in order to sort on the text score. In addition,
339+
``FindFlow`` instance in order to sort on the text score. In addition,
340340
the field name you specify in a ``$meta`` text score aggregation operation
341341
used in a sort is ignored. This means that the field name argument you pass
342342
to ``Sorts.metaTextScore()`` is disregarded.

source/fundamentals/crud/write-operations/bulk.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This data is modeled with the following Kotlin data class:
5252
For more information about the methods and classes mentioned in this section,
5353
see the following API Documentation:
5454

55-
- `bulkWrite() <{+api+}mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-mongo-collection/bulk-write.html>`__
55+
- `bulkWrite() <{+api+}/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-mongo-collection/bulk-write.html>`__
5656
- `WriteModel <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/WriteModel.html>`__
5757
- `BulkWriteOptions <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/BulkWriteOptions.html>`__
5858

source/fundamentals/data-formats/documents.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ For more information about the methods and classes mentioned in this section,
141141
see the following API Documentation:
142142

143143
- `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__
144-
- `getCollection() </apidocs/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-mongo-database/get-collection.html>`__
144+
- `getCollection() <{+api-kotlin+}/apidocs/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-mongo-database/get-collection.html>`__
145145
- `get() <{+api+}/apidocs/bson/org/bson/Document.html#get(java.lang.Object)>`__
146146

147147
BsonDocument
@@ -224,7 +224,7 @@ For more information about the methods and classes mentioned in this section,
224224
see the following API Documentation:
225225

226226
- `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__
227-
- `getCollection() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoDatabase.html#getCollection(java.lang.String)>`__
227+
- `getCollection() <{+api-kotlin+}/apidocs/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-mongo-database/get-collection.html>`__
228228
- `BsonInvalidOperationException <{+api+}/apidocs/bson/org/bson/BsonInvalidOperationException.html>`__
229229
- `get() <{+api+}/apidocs/bson/org/bson/BsonDocument.html#get(java.lang.Object)>`__
230230
- `BsonValue <{+api+}/apidocs/bson/org/bson/BsonValue.html>`__

0 commit comments

Comments
 (0)
0