Skip to content

Commit ea27c34

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

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
@@ -256,6 +256,11 @@ The following code sample maps the ``Identifier`` property to the
256256
(for example, if your POCO includes properties named ``Id`` and ``_id``),
257257
the driver throws a ``BsonSerializationException``.
258258

259+
.. note:: Nested Document Ids
260+
261+
The ``_id`` field mapping logic described in this section only applies to the
262+
root document and does not apply to nested documents.
263+
259264
Omit Empty Fields
260265
~~~~~~~~~~~~~~~~~
261266

0 commit comments

Comments
 (0)