You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/30-simple-queries/3-project.mdx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -85,8 +85,8 @@ db.books.aggregate([
85
85
</Tabs>
86
86
87
87
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.
90
90
- The primary key `_id` field is shown by default.
91
91
92
92
So we can exclude fields and show all fields except `attributes` using:
0 commit comments