From af68a3476adbda55cd77ad9220b742f60c409e6e Mon Sep 17 00:00:00 2001 From: Kanchana Sekhar Date: Mon, 11 Mar 2024 09:40:45 -0700 Subject: [PATCH] DOCSP-27227 Clarify MongoDB Aggregation in Compass Filter Doc --- source/query/filter.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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