Skip to content

Conversation

aksaharan
Copy link
Contributor

The code blocks do not align with what is being described above them. Re-arranging them in proper places now.

The code blocks do not align with what is being described above them. Re-arranging them in proper places now.
@kay-kim
Copy link
Contributor

kay-kim commented May 7, 2014

Thank you so much for your contribution. We appreciate the time you took to make the changes; however, the code blocks are correct as is. In the projection document, specifying : 0 suppresses that field in the results whereas specifying : 1 includes the field in the results.

So, the projection document { item: 1, _id: 0 } means to return the item field in the results but do not include the _id field, and thus is covered by the index mentioned.

The projection document { item: 1 } means to return the item field and the _id field (_id field always returns in the result unless you explicitly include _id: 0 in the projection document).

Hope this explanation helps. And thanks again for your time and efforts.

Regards,

Kay Kim

@kay-kim kay-kim closed this May 7, 2014
mongo-cr-bot pushed a commit that referenced this pull request Sep 2, 2022
* DOCSP-24882 set window fields and transaction (#1734)

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

* DOCSP-24882-setWindowFields-and-transaction

Co-authored-by: jason-price-mongodb <[email protected]>

* DOCSP-24882-setWindowFields-update

* DOCS-15590 refineshardkey updates (#1746)

* DOCS-15590-refineshardkey-updates

* DOCS-15590-refineshardkey-updates

* DOCS-15590-refineshardkey-updates

Co-authored-by: jason-price-mongodb <[email protected]>

Co-authored-by: jason-price-mongodb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants