File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -324,8 +324,11 @@ Nested Statements
324324+++++++++++++++++
325325
326326You can chain or nest ``Select`` and ``SelectMany`` statements to unwind nested
327- arrays. Consider a collection that holds documents with a ``restaurants`` field.
328- This field contains an array of documents that represent the ``Restaurants`` class:
327+ arrays. Consider a collection that contains documents with a new schema. These
328+ documents contain a ``restaurants`` field, which holds an array of documents
329+ that each represent the ``Restaurant`` class. These documents each have
330+ a ``grades`` field that holds an array of documents that each represent
331+ the ``Grade`` class.
329332
330333.. code-block:: json
331334
@@ -388,6 +391,10 @@ in the preceding document.
388391 "grade" : "A",
389392 "score" : 13.0
390393 },
394+ { "date" : ISODate("..."),
395+ "grade" : ...,
396+ "score" : ...
397+ },
391398 ...
392399 ]
393400
You can’t perform that action at this time.
0 commit comments