We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose we have document:
import { Class } from 'meteor/jagi:astronomy' Docs = new Mongo.Collection 'docs' Doc = Class.create name: 'Doc' collection: Docs fields: someNumber: Number newDoc = new Doc { someNumber: NaN } newDoc.save()
And we try to change someNumber field with not NaN value it does not changing:
someNumber
NaN
doc = Doc.findOne newDocId doc.someNumber = 10 doc.save() doc = Doc.findOne newDocId console.log doc.someNumber # Value still is NaN
The text was updated successfully, but these errors were encountered:
Can you create reproduction repository?
Sorry, something went wrong.
@lukejagodzinski sure! https://github.com/boomfly/astronomy-nan-issue/blob/master/server/main.coffee
@boomfly indeed there is a bug. It just uses $inc modifier for numbers instead of $set. It will be easy fix
$inc
$set
@boomfly fixed in v2.7.2
@lukejagodzinski thanks!
No branches or pull requests
Suppose we have document:
And we try to change
someNumber
field with notNaN
value it does not changing:The text was updated successfully, but these errors were encountered: