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

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -