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: Introduction to MongoDB in Python/3. Get Only What You Need, and Fast.md
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -261,3 +261,44 @@ Possible Answers
261
261
-[x] 5: the second call to limit overrides the first
262
262
-[ ] none: instead, an error is raised
263
263
> reason : You can think of the query parameters as being updated like a dictionary in Python: `d = {'limit': 3}; d.update({'limit': 5}); print(d) will print "{'limit': 5}"`
264
+
265
+
## 🦍 The first five prizes with quarter shares
266
+
-[x] Save to filter_ the filter document to fetch only prizes with one or more quarter-share laureates, i.e. with a "laureates.share" of "4".
267
+
-[x] Save to projection the list of field names so that prize category, year and laureates' motivations ("laureates.motivation") may be fetched for inspection.
268
+
-[x] Save to cursor a cursor that will yield prizes, sorted by ascending year. Limit this to five prizes, and sort using the most concise specification.
-[x] Complete the function get_particle_laureates that, given page_number and page_size, retrieves a given page of prize data on laureates who have the word "particle" (use $regex) in their prize motivations ("prizes.motivation"). Sort laureates first by ascending "prizes.year" and next by ascending "surname".
284
+
-[x] Collect and save the first nine pages of laureate data to pages.
0 commit comments