Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-144

Allow map_reduce to return metadata, not just results collection

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Any

      map_reduce in Mongo::Collection returns with:

      @db[result["result"]]

      Could we parametrize map_reduce to optionally ask for whole "result" object, or if not wanting to have varying response object types for one method, provide another method to support this?

            Assignee:
            kbanker Kyle Banker
            Reporter:
            crudson Doug Hudson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: