Comments (5)
I am using integer fields successfully in two meteor projects right now, I haven't noticed anything getting dropped. Specifically, I'm using integers to maintain the order in a couple collections.
slides.meteor.com
touring.meteor.com
from meteor.
BSON has integer and number/double ("double precision floating-point format in JavaScript, generally depends on implementation"), maybe the difference comes from there? From the NOTEs file:
"Only the basic JSON types are implemented (string, number, boolean, null, array, object)."
and
"we don't support the integer type yet"
If that helps, it's an int() added to the DB by a Python script (pymongo) that caused the problem for me.
from meteor.
Interesting, my mistake, I'm probably just using numbers
that look like integers.
from meteor.
Would be nice to output a warning if possible (which is why I'm marking this as "unconfirmed-bug").
Also, touching upon this somewhere in http://docs.meteor.com/ would be helpful.
from meteor.
Numbers in general do work in Meteor. There might be a more specific issue here (conversion to some special Mongo type? the "length" name being strange?). If you have a specific reproduction recipe (see https://github.com/meteor/meteor/wiki#wiki-bugs ) please re-open.
from meteor.
Related Issues (20)
- [Meteor 3] Improve logs when creating app with --release HOT 1
- [Meteor 3] Meteor.callAsync doesn't provide result from server HOT 1
- Unable to use Meteor.callAsync from async method stub
- Upgrade to Alpha 18 / 19 fails with error: command failed npm rebuild --update-binary HOT 3
- 2.12 mobile build net::ERR_CONNECTION_REFUSED HOT 1
- [Meteor 3 Alpha] MINISAT-out: Cannot enlarge memory arrays HOT 6
- Documents never written to database after 100% CPU (causing MongoPoolClearedError)
- meteor-node-stubs 1.2.6 is missing dependencies HOT 1
- Drop of the users collection if a custom one is set via configuration HOT 6
- [Meteor 3] Node version is still pinned to v14 instead of v20 HOT 12
- Meteor app crashes when require().enable runs.
- [Meteor 3] Mongo.Cursor.observeChanges returns a Promise instead of a query handle HOT 2
- [Meteor 3] Improve migration path for non-mongo packages
- [Meteor 3] TypeScript declarations are out of date
- [Meteor 3] Rename or remove asyncLocalStorage global
- [Meteor 3] Unable to run bundle from "meteor build"
- Adding a package with `meteor add` does not pull the latest version HOT 3
- [BUG BOUNTY] $500 Reward to improve the performance of Meteor on Windows HOT 13
- Creating Vue App fails with Alpha 20 HOT 1
- Guide (v. 2.14) - create new vue3 app does not use vue skeleton
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor.