Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a8e42aa

Browse filesBrowse files
committed
Add Projection.
1 parent 167cfad commit a8e42aa
Copy full SHA for a8e42aa

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Open diff view settings
Collapse file

‎README.org‎

Copy file name to clipboardExpand all lines: README.org
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- [[#aggregation-operators][Aggregation Operators]]
2929
- [[#limit][Limit]]
3030
- [[#match][Match]]
31+
- [[#projection][Projection]]
3132
- [[#run-the-command][Run the command]]
3233
- [[#insert-documents][Insert Documents]]
3334
- [[#insert-one-document][Insert one document]]
@@ -245,6 +246,14 @@ pipeline.append({
245246
#+BEGIN_SRC python
246247
pipeline.append({
247248
"$match": { "status": "A"}
249+
**** Projection
250+
251+
#+BEGIN_SRC python
252+
pipeline.append({
253+
"$project": {"status": 1}
254+
})
255+
#+END_SRC
256+
248257
})
249258
#+END_SRC
250259

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.