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.

How to set `Mongo decimal` on Schema in `MeteorJS`?

See original GitHub issue

I would like to set Mongo Decimal directly on Schema in Meteor JS. Please help me.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
thearabbitcommented, Apr 13, 2020

Sorry for late.

// work
valDecimal: {
    type: Decimal,
    blackbox: true
  },
-------------
// Don't work
valDecimal: {
    type: Decimal,
  },
0reactions
logvikcommented, Jul 13, 2019

One moment yet. Need to add for Decimal, to discard the deep validation

    blackbox: true

e.g.

 valDecimal: {
    type: Decimal,
    blackbox: true
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set Mongo decimal on Schema in MeteorJS ? #335
I would like to set Mongo Decimal directly on Schema in Meteor JS. ... import { Mongo } from 'meteor/mongo' import SimpleSchema from ......
Read more >
meteor, mongodb, spacebars, how do I display only 2 decimal ...
I have a collection that has values like { "pctFail" : "0.3515500159795462" } and when I pass this to a template and display...
Read more >
Mongo 3.4. decimal support documentation - Meteor forums
It looks like that it is to add support to Mongo 3.4 NumberDecimal type that can help representing money amounts. It there any...
Read more >
Quick Start: BSON Data Types - Decimal128 - MongoDB
Working with decimal numbers can be a challenge. The Decimal128 BSON data type allows for high precision options when working with numbers.
Read more >
SimpleSchema (simpl-schema NPM package)
The object you validate can be a MongoDB modifier. SimpleSchema ... SimpleSchema was first released as a Meteor package in mid-2013.
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