Skip to content

Commit 273af1c

Browse files
committed
DOCSP-44180: Clarify _id field behavior for nested documents (#323)
(cherry picked from commit 73e4e14)
1 parent c27636e commit 273af1c

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

source/fundamentals/serialization/poco.txt

+5
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ The following code sample maps the ``Identifier`` property to the
251251
(for example, if your POCO includes properties named ``Id`` and ``_id``),
252252
the driver throws a ``BsonSerializationException``.
253253

254+
.. note:: Nested Document Ids
255+
256+
The ``_id`` field mapping logic described in this section only applies to the
257+
root document and does not apply to nested documents.
258+
254259
Omit Empty Fields
255260
~~~~~~~~~~~~~~~~~
256261

0 commit comments

Comments
 (0)