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

export json should use promoteValues: false when running the query or aggregation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.43.5
    • Affects Version/s: None
    • Component/s: Import/Export
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Iteration Gamma Rays
    • Not Needed
    • Developer Tools

      Insert this doc (EJSON syntax):

       { "double":

      { "$numberDouble": 1}

      }

       

      Then export to json with canonical syntax. It exports { double: 1 }.

      We should add promoteValues: false to the input find or aggregate query just like we do when exporting csv.

       

      A bunch of expected test results will likely have to be replaced.

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: