File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,16 @@ 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 use the ``ElemMatch()`` method to find documents that contain an
109+ array field that contains at least one element that matches your search criteria. The
110+ following example returns documents that contain the value ``"Summer"`` in
111+ 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");
109118
110119.. _csharp-builders-projection:
111120
You can’t perform that action at this time.
0 commit comments