How to use the Decimal128 function from mongodb

Find comprehensive JavaScript mongodb.Decimal128 code examples handpicked from public code repositorys.

38
39
40
41
42
43
44
45
46
module.exports.ObjectId = mongodb.ObjectId
module.exports.ObjectID = mongodb.ObjectID
module.exports.Symbol = mongodb.Symbol
module.exports.Timestamp = mongodb.Timestamp
module.exports.Map = mongodb.Map
module.exports.Decimal128 = mongodb.Decimal128

// Add support for default ES6 module imports
module.exports.default = module.exports
fork icon272
star icon0
watch icon59

+ 15 other calls in file

0
1
2
3
4
5
6
7
8
9
10
11
12
const Router = require('express').Router;
const mongodb = require('mongodb');


const db = require('../db');


const Decimal128 = mongodb.Decimal128;
const ObjectId = mongodb.ObjectId;


const router = Router();

fork icon0
star icon1
watch icon0