From 23c38c6b96876b2d30295ce004cd4d146d0433ec Mon Sep 17 00:00:00 2001 From: Meg528 <71841959+Meg528@users.noreply.github.com> Date: Wed, 12 Feb 2025 11:37:29 -0700 Subject: [PATCH] Update 20-simple-match-array.mdx --- docs/40-using-arrays/20-simple-match-array.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/40-using-arrays/20-simple-match-array.mdx b/docs/40-using-arrays/20-simple-match-array.mdx index 6078680..d3924b8 100644 --- a/docs/40-using-arrays/20-simple-match-array.mdx +++ b/docs/40-using-arrays/20-simple-match-array.mdx @@ -3,9 +3,9 @@ import TabItem from '@theme/TabItem'; # 👐 Simple arrays -## 👐 Get all the Science Fiction Books +## 👐 Get all the science fiction books -Can I get all books for the genre `Science Fiction`?. Turns out it's quite simple: +Can I get all books for the genre `Science Fiction`? Turns out it's quite simple: @@ -40,7 +40,7 @@ Remember that will include any book that has any other genre as long as it has ` ## 👐 Find all the books that belong at least to both genres "Fiction" and "Science Fiction" -If you want to search for all books that have "Fiction" and "Science Fiction", in any order (and possibly other genres) use: +If you want to search for all books that have "Fiction" and "Science Fiction," in any order (and possibly other genres), use: @@ -108,7 +108,7 @@ db.books.aggregate([{ ## 👐 Find all the books that belong only to the genres "Fiction" and "Science Fiction" -In this case, we want books that have both "Fiction" and "Science Fiction" in the genres array _and nothing else_. So we're looking for documents that contain a `genres` array exactly as `['Fiction', 'Science Fiction']`. We're not looking for the individual genres that could be inside the array, instead we are comparing the whole array on each document. +In this case, we want books that have both "Fiction" and "Science Fiction" in the genres array _and nothing else_. So we're looking for documents that contain a `genres` array exactly as `['Fiction', 'Science Fiction']`. We're not looking for the individual genres that could be inside the array. Instead, we are comparing the whole array on each document. @@ -145,7 +145,7 @@ db.books.aggregate([ -Here we're comparing the whole array. __Element order is important__. With this comparison you'll get nothing in return: +Here, we're comparing the whole array. __Element order is important__. With this comparison, you'll get nothing in return: @@ -179,4 +179,4 @@ db.books.aggregate([ ]) ``` - \ No newline at end of file +