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

mongoexport support projection option

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      mongoexport support `–fields` flag, but I got another problem.

      My data is complex,  it contains 'avatar' & 'password' inside, I wana to export them for analyzing. I need export all the data but 'avatar' and 'password' field.

      {
        data: {
           a: {},
           b: {},
           user: {
             name: '',
             age: 0,
             avatar: 'data:...',  // base64 image
             password: '',  // encrypted
           },
        }
      }

      I suggest the `–query` flag can support projection, or add another flag to adapt this, like the query in mongo shell itself.

      Thx

            Assignee:
            eric.sedor@mongodb.com Eric Sedor
            Reporter:
            elvismacak elvismacak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: