@@ -45,7 +45,7 @@ inserted into a collection. You can choose one of the following options:
45
45
- :guilabel:`Autogenerated ObjectId`
46
46
47
47
- Your ``_id`` field is populated with an autogenerated random
48
- `ObjectId <https://www.mongodb.com/docs/manual/reference/ bson-types/#std-label-objectid>`__ .
48
+ :ref: `ObjectId <document- bson-type-object-id>` .
49
49
50
50
``Autogenered ObjectId`` is the default key handling strategy used
51
51
when creating a new project.
@@ -56,6 +56,14 @@ inserted into a collection. You can choose one of the following options:
56
56
For example, if your relational table row has a primary key of ``personId = 1``,
57
57
after migration your MongoDB ``_id`` field is ``_id: ObjectId("62472f3d5849820a91d7b52f")``.
58
58
59
+ - :guilabel:`Single Inherited Primary Key`
60
+
61
+ - Your ``_id`` field is populated with the value of the primary key
62
+ field. The name of your primary key field is not included in the ``_id``.
63
+
64
+ For example, if your relational table row has a primary key of ``personId=1``,
65
+ after migration your MongoDB ``_id`` field is ``_id: 1``.
66
+
59
67
- :guilabel:`Wrapped Inherited Primary Key`
60
68
61
69
- Your ``_id`` field is populated with an object where the key is the
@@ -67,14 +75,6 @@ inserted into a collection. You can choose one of the following options:
67
75
``_id: { personId: 1 }``.
68
76
69
77
70
- - :guilabel:`Single Inherited Primary Key`
71
-
72
- - Your ``_id`` field is populated with the value of the primary key
73
- field. The name of your primary key field is not included in the ``_id``.
74
-
75
- For example, if your relational table row has a primary key of ``personId=1``,
76
- after migration your MongoDB ``_id`` field is ``_id: 1``.
77
-
78
78
Key Handling Behavior
79
79
`````````````````````
80
80
0 commit comments