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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -