Distinct method should allow to pass extra query

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.1.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Distinct method should allow to pass optional query, like in MongoDB doc:

      http://www.mongodb.org/display/DOCS/Aggregation#Aggregation-Distinct

      Example MongoDB code:

      > db.address.distinct( "zip-code" ,

      { age : 30 }

      )

      Using pymongo

      > db.address.distinct("zip-code" ,

      {'age': 30}

      )

      raises exception:

      TypeError: distinct() takes exactly 2 arguments (3 given)

            Assignee:
            Bernie Hackett
            Reporter:
            cricogik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: