Skip to content

Commit 07c48a3

Browse files
committed
DOCSP-44180: Clarify _id field behavior for nested documents (mongodb#323)
(cherry picked from commit 73e4e14)
1 parent adb8296 commit 07c48a3

File tree

1 file changed

+5
-0
lines changed
  • source/fundamentals/serialization

1 file changed

+5
-0
lines changed

source/fundamentals/serialization/poco.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ The following code sample maps the ``Identifier`` property to the
243243
(for example, if your POCO includes properties named ``Id`` and ``_id``),
244244
the driver throws a ``BsonSerializationException``.
245245

246+
.. note:: Nested Document Ids
247+
248+
The ``_id`` field mapping logic described in this section only applies to the
249+
root document and does not apply to nested documents.
250+
246251
Omit Empty Fields
247252
~~~~~~~~~~~~~~~~~
248253

0 commit comments

Comments
 (0)