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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • drivers
    • 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 9 weeks, 6 days ago