Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6020

CSV export missing fields when depth > 1

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.37.0
    • None
    • Import/Export
    • None
    • OS:
      node.js / npm versions:
      Additional info:

    Description

      Steps to reproduce:

      • create an empty collection
      • insert the document

        {"a": {"b": {"c": 1}}}
        

      • export to CSV

      The result will look something like this:

      _id,a.b
      62fb64b8936c42092807675f,
      

      The field selection only shows "a.b" which is ok with JSON cause the projection would effectively export the entire content of `a.b`, with CSV the content is not serialized unless is an Array, and the value is lost.

      Attachments

        Activity

          People

            Unassigned Unassigned
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: