File tree Expand file tree Collapse file tree 6 files changed +37
-2
lines changed
source/fundamentals/builders Expand file tree Collapse file tree 6 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ modeled by the following ``Movie`` data class for use with the Kotlin driver:
54
54
.. literalinclude:: /examples/generated/AggregatesBuilderTest.snippet.movie-data-class.kt
55
55
:language: kotlin
56
56
57
+ .. tip:: Aggregates and Data Class Properties
58
+
59
+ You can use methods from the ``Aggregates`` and
60
+ ``Accumulators`` classes directly with data class
61
+ properties by adding the optional {+driver-short +} extensions
62
+ dependency to your application. To learn more and view examples, see
63
+ the :ref:`kotlin-builders-data-classes` guide.
64
+
57
65
Match
58
66
-----
59
67
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ with the Kotlin driver:
85
85
.. tip:: Filters and Data Class Properties
86
86
87
87
You can use methods from the ``Filters`` class directly with data class
88
- properties by adding the optional {+driver-short +}extensions
88
+ properties by adding the optional {+driver-short +} extensions
89
89
dependency to your application. To learn more and view examples, see
90
90
the :ref:`kotlin-builders-data-classes` guide.
91
91
Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ instance, which you can pass to
45
45
46
46
import com.mongodb.client.model.Indexes.*
47
47
48
+ .. tip:: Indexes and Data Class Properties
49
+
50
+ You can use methods from the ``Indexes`` class directly with data class
51
+ properties by adding the optional {+driver-short +} extensions
52
+ dependency to your application. To learn more and view examples, see
53
+ the :ref:`kotlin-builders-data-classes` guide.
54
+
48
55
.. _ascending-indexes:
49
56
50
57
Ascending Indexes
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ to any method that expects a projection.
40
40
41
41
import com.mongodb.client.model.Projections.*
42
42
43
-
44
43
Sample Documents and Examples
45
44
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46
45
@@ -96,6 +95,13 @@ The following data class is used to represent the documents in the collection:
96
95
.. literalinclude:: /examples/generated/ProjectionsBuildersTest.snippet.example-data-class.kt
97
96
:language: kotlin
98
97
98
+ .. tip:: Projections and Data Class Properties
99
+
100
+ You can use methods from the ``Projections`` class directly with data class
101
+ properties by adding the optional {+driver-short +} extensions
102
+ dependency to your application. To learn more and view examples, see
103
+ the :ref:`kotlin-builders-data-classes` guide.
104
+
99
105
Projection Operations
100
106
---------------------
101
107
Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ This data is modeled with the following Kotlin data class:
53
53
.. literalinclude:: /examples/generated/SortTest.snippet.sort-data-model.kt
54
54
:language: kotlin
55
55
56
+ .. tip:: Sorts and Data Class Properties
57
+
58
+ You can use methods from the ``Sorts`` class directly with data class
59
+ properties by adding the optional {+driver-short +} extensions
60
+ dependency to your application. To learn more and view examples, see
61
+ the :ref:`kotlin-builders-data-classes` guide.
62
+
56
63
The Sorts Class
57
64
---------------
58
65
Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ This example is modeled by the following data class unless otherwise noted:
68
68
.. literalinclude:: /examples/generated/UpdatesBuildersTest.snippet.example-data-class.kt
69
69
:language: kotlin
70
70
71
+ .. tip:: Updates and Data Class Properties
72
+
73
+ You can use methods from the ``Updates`` class directly with data class
74
+ properties by adding the optional {+driver-short +} extensions
75
+ dependency to your application. To learn more and view examples, see
76
+ the :ref:`kotlin-builders-data-classes` guide.
77
+
71
78
.. _field_updates:
72
79
73
80
Field Updates
You can’t perform that action at this time.
0 commit comments