[DOCS-9125] Comment on: "docs-ruby/tutorials/ruby-driver-projections.txt" Created: 11/Oct/16  Updated: 12/Dec/16  Resolved: 07/Dec/16

Status: Closed
Project: Documentation
Component/s: drivers
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Adrien Jarthon Assignee: Steve Renaker (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-projections/
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36
Referrer: https://docs.mongodb.com/ruby-driver/master/quick-start/
Screen Resolution: 2560 x 1440


Participants:
Days since reply: 7 years, 9 weeks, 6 days ago
Story Points: 0.5

 Description   

This doc is a bit out of date: says 2.2 is current whereas it's 2.3.
But most importantly the syntax changed, I tried for a while doing a find with projection and never manged to make it work. I had to look at the code to see that the second arg to find is actually an option hash and I have to pass {projection: {...}} for it to work.
So a little update needs to be done here I guess



 Comments   
Comment by Githook User [ 08/Dec/16 ]

Author:

{u'username': u'estolfo', u'name': u'Emily S', u'email': u'emily@10gen.com'}

Message: Merge pull request #843 from steveren/DOCS-9125

DOCS-9125: projections tutorial update
Branch: master
https://github.com/mongodb/mongo-ruby-driver/commit/cb9efaea38a3a035e4b348e3dc271e810addf60e

Comment by Githook User [ 08/Dec/16 ]

Author:

{u'username': u'estolfo', u'name': u'Emily S', u'email': u'emily@10gen.com'}

Message: Merge pull request #843 from steveren/DOCS-9125

DOCS-9125: projections tutorial update
Branch: master
https://github.com/mongodb/mongo-ruby-driver/commit/cb9efaea38a3a035e4b348e3dc271e810addf60e

Comment by Githook User [ 08/Dec/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-9125: projections tutorial update
Branch: master
https://github.com/mongodb/mongo-ruby-driver/commit/c221bcce7db586cb9b2b9cc3277277660a8de849

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