From 9e9528eeeb0eda11c341854c2e225295fe9fb46a Mon Sep 17 00:00:00 2001 From: Michael Morisi Date: Mon, 25 Nov 2024 16:42:45 -0500 Subject: [PATCH 1/2] DOCSP-44180: Clarify _id field behavior for nested documents --- source/fundamentals/serialization/poco.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/fundamentals/serialization/poco.txt b/source/fundamentals/serialization/poco.txt index 8819e5b1..a2d27f67 100644 --- a/source/fundamentals/serialization/poco.txt +++ b/source/fundamentals/serialization/poco.txt @@ -256,6 +256,11 @@ The following code sample maps the ``Identifier`` property to the (for example, if your POCO includes properties named ``Id`` and ``_id``), the driver throws a ``BsonSerializationException``. +.. note:: Nested Document Ids + + The ``_id`` field mapping logic described in this section only applies to the + root document, and does not apply to nested documents. + Omit Empty Fields ~~~~~~~~~~~~~~~~~ From 2e984d006f2d3454564de4c8185585dbc64f0284 Mon Sep 17 00:00:00 2001 From: Michael Morisi Date: Tue, 26 Nov 2024 09:30:03 -0500 Subject: [PATCH 2/2] LM feedback --- source/fundamentals/serialization/poco.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fundamentals/serialization/poco.txt b/source/fundamentals/serialization/poco.txt index a2d27f67..d8dcc294 100644 --- a/source/fundamentals/serialization/poco.txt +++ b/source/fundamentals/serialization/poco.txt @@ -259,7 +259,7 @@ The following code sample maps the ``Identifier`` property to the .. note:: Nested Document Ids The ``_id`` field mapping logic described in this section only applies to the - root document, and does not apply to nested documents. + root document and does not apply to nested documents. Omit Empty Fields ~~~~~~~~~~~~~~~~~