We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58165e2 commit 77a707aCopy full SHA for 77a707a
docs/40-CRUD/2-SELECT.mdx
@@ -100,6 +100,17 @@ Here:
100
```
101
</div>
102
</TabItem>
103
+ <TabItem value="python" label="Python">
104
+ <div>
105
+ ```python
106
+ books_with_title_only = books.find({}, {"title": 1, "_id": 0}).limit(10)
107
+
108
+ for book in books_with_title_only:
109
+ print(book)
110
+ ```
111
+ </div>
112
113
+ </TabItem>
114
</Tabs>
115
</details>
116
@@ -126,5 +137,15 @@ Here:
126
137
127
138
128
139
140
141
142
143
+ books_with_genre_history = books.find({"genres": "History"}, {"_id": 0, "authors": 0}).limit(10)
144
145
+ for book in books_with_genre_history:
146
147
148
149
129
150
130
151
0 commit comments