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

Support aggregation framework queries in mongoexport

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongoexport
    • Needed

      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 } } ]'
      

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

              Created:
              Updated:
              Resolved: