Skip to content

Commit 2b91ae1

Browse files
authored
Merge pull request #51 from Meg528/patch-36
Update 3-project.mdx
2 parents 8d097a5 + db8753a commit 2b91ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/30-simple-queries/3-project.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ db.books.aggregate([
8585
</Tabs>
8686

8787

88-
- 1 means "show that field.". Once you started an inclusion projection you can't exclude other fields (you just keep adding the fields you want to see)
89-
- 0 means "hide that field.". Once you started an exclusion projection you can't include other fields (you just keep adding the fields you don't want to see)
88+
- 1 means, "Show that field." Once you start an inclusion projection, you can't exclude other fields. You just keep adding the fields you want to see.
89+
- 0 means, "Hide that field." Once you start an exclusion projection, you can't include other fields. You just keep adding the fields you don't want to see.
9090
- The primary key `_id` field is shown by default.
9191

9292
So we can exclude fields and show all fields except `attributes` using:

0 commit comments

Comments
 (0)