File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,19 @@ Use builders to check which documents in the collection have a
105105 var builder = Builders<Flower>.Filter;
106106 var filter = builder.AnyEq(f => f.Season, "winter");
107107
108- .. TODO for a complete list of expressions, see the Query page?
108+ You can also call the ``ElemMatch()`` method to find documents that have an
109+ array field that contains at least one element that matches a specified search
110+ criteria. The following example returns documents that contain the value
111+ ``"Summer"`` in their ``Season`` array:
112+
113+ .. code-block:: csharp
114+ :copyable: true
115+
116+ var builder = Builders<Flower>.Filter;
117+ var filter = builder.ElemMatch(f => f.Season, s => s == "Summer");
118+
119+ To learn more about array operators, see the :manual:`Array Query Operators
120+ </reference/operator/query-array/>` guide in the {+mdb-server+} manual.
109121
110122.. _csharp-builders-projection:
111123
You can’t perform that action at this time.
0 commit comments