Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4044

Export NumberLong Doesn't Work Properly

    • Type: Icon: New Feature New Feature
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed

      Problem Description

      Community user reports that when we export document that contains NumberLong fields, in the exported JSON file the type is wrong.

      Steps to Reproduce

      • Create a new collection export_test
      • Insert a document {_id: ObjectId("6045a072e208592596c96009"), long: NumberLong("1234567890000")}
      • Export export_test to JSON using the Compass export function

      Expected Results

      [{
      "_id":

      { "$oid": "6045a072e208592596c96009" }

      ,
      "long":

      { "$numberlong": "12345678900000" }

      }]

      Actual Results

      [{
      "_id":

      { "$oid": "6045a072e208592596c96009" }

      ,
      "long": 12345678900000
      }]

      Additional Notes

            Assignee:
            Unassigned Unassigned
            Reporter:
            yaoxing.zhang@mongodb.com Yaoxing Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: