Skip to content

Bug Report: Saving document converts Int64 to Double #746

Closed
@DJSchaffner

Description

@DJSchaffner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions