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

Support aggregation framework queries in mongoexport

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • mongoexport
    • 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

            david.golden@mongodb.com David Golden
            matias.cascallares Matias Cascallares
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: