mongoexport and specific fields export with an alias name

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      I am trying to export certain fields from a collection using mongoexport command, by defining the fields in an external file. Is there a possible way to define an alias for each of the field. Example:

      { "id":1, "words":["data","base"] }

      My file would be as:

      id
      words.0
      words.1

      Which leads to a csv header as :

      id, words.0, words.1

      Instead, I require aliases to each of these transformed columns as:

      id, first_word, second_word

      In reference with : https://stackoverflow.com/questions/45104075/mongoexport-and-specific-fields-export-with-an-alias-name?noredirect=1#comment77181177_45104075

              Assignee:
              David Golden
              Reporter:
              Sathiya Sarathi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: