Code Monkey home page Code Monkey logo

Comments (5)

lashleigh avatar lashleigh commented on May 4, 2024

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.

antoviaque avatar antoviaque commented on May 4, 2024

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.

lashleigh avatar lashleigh commented on May 4, 2024

Interesting, my mistake, I'm probably just using numbers that look like integers.

from meteor.

audreyfeldroy avatar audreyfeldroy commented on May 4, 2024

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.

glasser avatar glasser commented on May 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.