javascript - find objects in a database by range -



javascript - find objects in a database by range -

im trying find objects in database, can't work if utilize range query. have pointer of how can find documents between date values?

if skip range document in database wrong query,

mondodb query

db.collection('insights').find({'date': {$gt: '10000000', $lt: '90000000000000'}}).toarray(function (err, items){ res.json(items); console.log(items) });

database

{"_id":"5450b2889d96472e67c99691","username":"josef","date":"'1414574728436'"}

javascript node.js mongodb

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -