Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9125

Comment on: "docs-ruby/tutorials/ruby-driver-projections.txt"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: drivers
    • Environment:
    • 0.5

      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

            Assignee:
            steve.renaker@mongodb.com Steve Renaker (Inactive)
            Reporter:
            bigbourin@gmail.com Adrien Jarthon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              7 years, 20 weeks, 5 days ago