Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-802

Support aggregation framework queries in mongoexport

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongoexport
    • Labels:
    • Documentation Changes:
      Needed

      Description

      For mongoexport you can use --query to define ad hoc queries when exporting data.

      In MongoDB 2.6+ the aggregate command returns a result cursor similar to a normal query. It would be nice to be able to specify aggregation framework results with a command line option as an alternative to --query:

      For example:

      mongoexport --db test --collection foo --aggregate '[ { "$unwind" : { documentTags : 1 } } ]'
      

        Attachments

          Activity

            People

            Assignee:
            david.golden David Golden
            Reporter:
            matias.cascallares Matias Cascallares
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: