question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What are the plans of Mongoose to support BigInt?

See original GitHub issue

Starting node.js v10.3 the new data type was introduced - BigInt. It’s Stage 3 atm.

Are there any plans or work going to support it same as Number, Buffer, Date, Map etc are supported?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
nodegincommented, Apr 21, 2019

This is really needed, Node.js now support BigInt natively and we definitely do not want to deal with Decimal128.

0reactions
vkarpov15commented, May 12, 2019

@Fonger that’s an interesting idea, we should be able to store BigInts as buffers, but then you won’t be able to do $inc, etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Long integers in mongoose
Hi all — Mongo provides for bigints via the "Long" type / casting function... The mongo-db-native driver does too. However, the best we...
Read more >
Mongoose v6.8.2: SchemaTypes
Mongoose comes with support for several built-in SchemaType options, like lowercase in the above example. The lowercase option only works for strings.
Read more >
DataTypes in MongoDB
BSON data format supports various data-types. Below are the enlisted MongoDB data types: 1. String: This is the most commonly used data type ......
Read more >
Including Data from an External Database into a Mongoose ...
Optionally, specify the name of a column for optimistic locking that is present in some or all tables in the non-Mongoose database. If...
Read more >
Tokenisation of work framework and makerspace ...
bottom up engagement, urban planning innovation, and social industry 4.0 ... required to support the 'tokenisation of work' framework.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found