In MapReduceCommand, the scope should be a DBObject instance instead of a String

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.6
    • Affects Version/s: 2.5
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The only way to set the scope for a mapReduce command when using hte MapReduceCommand is to pass in a String, which does not work (at least not in Mongo 1.8.0-rc0) since the scope will end up being placed within quotations when runCommand is being called. Changing the scope to a DBObject instance instead of a String fixes the issue.

              Assignee:
              Antoine Girbal (Inactive)
              Reporter:
              Kristofer Ă…gren
              None
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: