[DOCS-7217] Comment on: "manual/tutorial/query-documents.txt" Created: 22/Feb/16  Updated: 03/Nov/17  Resolved: 11/Apr/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Ravind Kumar (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.org/manual/tutorial/query-documents/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Referrer: https://docs.mongodb.org/manual/tutorial/iterate-a-cursor/
Screen Resolution: 1536 x 864
repo: docs
source: tutorial/query-documents


Issue Links:
Depends
is depended on by DOCS-6826 CRUD Tutorial Improvement Closed
Participants:
Days since reply: 7 years, 44 weeks, 2 days ago

 Description   

Dear Ladies and Gentlemen,

please update your tutorial for MongoDB CRUD Operations for version 3.2.
For example, the tutorial says that db.inventory.find(

{ type: "snacks" }

) should be a valid operation, however in version 3.2 db.inventory.find requires a BSON as input.

Best Regards



 Comments   
Comment by Kay Kim (Inactive) [ 11/Apr/16 ]

The operation is valid in the mongo shell:

you picked mongodb-3.2.4
MongoDB shell version: 3.2.4
connecting to: 127.0.0.1:27017/test
> db.inventory.find( { type: "snacks" } )
{ "_id" : ObjectId("570bfe983e732e2a36e821c9"), "type" : "snacks", "item" : "chips" }

Generated at Thu Feb 08 07:53:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.