File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -297,13 +297,13 @@ MongoDB.
297
297
When you apply the ``DocumentModel`` trait to a model class, you must
298
298
declare the following properties in your class:
299
299
300
- - ``$primaryKey``: defines the field that uniquely identifies a MongoDB document.
301
- - ``$keyType``: defines the type of the primary key value.
300
+ - ``$primaryKey``: Defines the field that uniquely identifies a MongoDB document
301
+ - ``$keyType``: Defines the type of the primary key value
302
302
303
303
Extended Class Example
304
304
~~~~~~~~~~~~~~~~~~~~~~
305
305
306
- In this example, you create a ``Planet`` model class that extends the
306
+ This example creates a ``Planet`` model class that extends the
307
307
``CelestialBody`` class from a package called ``ThirdPartyPackage``. The
308
308
``Post`` class includes the ``DocumentModel`` trait and defines
309
309
properties including ``$primaryKey`` and ``$keyType``:
You can’t perform that action at this time.
0 commit comments