File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ You can use the following annotations on data classes:
124
124
125
125
* - ``BsonRepresentation``
126
126
- Specifies the BSON type MongoDB uses to store the value. Use this
127
- annotation only when you need to store a value as a different
127
+ annotation only when you must store a value as a different
128
128
BSON type than the data class property.
129
129
130
130
:red:`WARNING:` Your code might throw an exception if you include the
@@ -159,7 +159,7 @@ You can insert a ``NetworkDevice`` instance as shown in the following code:
159
159
:end-before: end-insert-ann
160
160
:dedent:
161
161
162
- The inserted document in MongoDB should resemble the following:
162
+ The inserted document in MongoDB resembles the following:
163
163
164
164
.. code-block:: json
165
165
:copyable: false
@@ -204,9 +204,10 @@ code provides an example of a recursive data class design:
204
204
:end-before: end-recur-class
205
205
:dedent:
206
206
207
- You can perform read and write operations on recursively defined data classes the same
208
- way you would for other data classes. The following code shows how you can
209
- execute a find operation on a collection of ``DataClassTree`` types:
207
+ You can perform read and write operations on recursively defined data
208
+ classes the same way that you do for other data classes. The following
209
+ code shows how you can execute a find operation on a collection of
210
+ ``DataClassTree`` types:
210
211
211
212
.. io-code-block::
212
213
:copyable: true
You can’t perform that action at this time.
0 commit comments