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

CSV export missing fields when depth > 1

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.37.0
    • Affects Version/s: None
    • Component/s: Import/Export
    • Labels:
      None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:

      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.

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

              Created:
              Updated:
              Resolved: