aggregate command fails with symbol keys

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.12
    • Affects Version/s: 1.11.0
    • Component/s: Public API
    • None
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      command {aggregate: 'test', pipeline: [{'$match' => {_id: true}}]} fails as the implementation checks for string 'pipeline' and not symbol :pipeline.

      $ mongo_console
      > Mongo::MongoClient.new.db('test').command({aggregate: 'test', pipeline: [{'$match' => {_id: true}}]})
      NoMethodError: undefined method `none?' for nil:NilClass
      from /Users/gjm/.rvm/gems/ruby-2.1.1/gems/mongo-1.11.1/lib/mongo/functional/read_preference.rb:77:in `secondary_ok?'

              Assignee:
              Emily Stolfo (Inactive)
              Reporter:
              Gary Murakami (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: