diff --git a/source/query/filter.txt b/source/query/filter.txt index 51487ea00..9644126f9 100644 --- a/source/query/filter.txt +++ b/source/query/filter.txt @@ -427,9 +427,7 @@ How Does the Compass Query Compare to MongoDB and SQL Queries? MongoDB Aggregation .. code-block:: javascript - db.article.aggregate( - { $filter : { author : { $eq : "Joe Bloggs" } } } - ); + db.article.aggregate( { $match: { "author": "Joe Bloggs" } } ) SQL .. code-block:: sql