Mongodb can't find object with too long _id -


i have little bit strange situation.

i persist objects in collection "refs" explicitly setting _id. have objects big id's.

db.refs.find().sort({_id: -1}); // {_id: 9200000000165761625} // ... 

but when try find object biggest id in mongo shell returns nothing:

db.refs.find({_id: 9200000000165761625}); // nothing 

but!

db.refs.find({_id: 9200000000165761625}).count(); // return 1 

how happen?

i not reproduce problem. able query on _id value specified. enter image description here

ensure when querying passing correct collection name


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -