mongodb-js/vscode

Bug Report: Saving document converts Int64 to Double

DJSchaffner opened this issue · 1 comments

Bug Report

Current Behavior

When saving a document containing Int64 values in the they will be converted to Double.
Probably related to #747

Code/Gist

{
  "_id": {
    "$oid": "64a81216fc3208ccee8ec5f3"
  },
  "guild_id": 818617667421601800
}

Hitting save will convert the guild_id field for this document to a Double

Expected Behavior/Code

The type of fields should not change to a different type on save

Environment

  • node.js / npm versions: -
  • MongoDB for VS Code: 1.6.0
  • OS: Windows 10

Possible Solution

Additional Context/Screenshots

Closing as a duplicate of #747.