Mongodb find with wrong result Int64 object
the answer could be trivial but all is connected with quotes "
around value for number long.
Inserting data and querying need to be 'quoted'
db.sofia.find({"_id" : NumberLong("-1819413477243867792")}).pretty(){ "_id" : NumberLong("-1819413477243867792"), "targetentity" : "NODOGENERICO .ag.HP_BAR_DEG_APP_1", "tx" : false, "ocname" : ".oc.serv6", ....}
I think you're hitting some sort of limits within mongo NumberLong.
I've opened a mongo console and this is the output
> NumberLong(-1819413477243867792)NumberLong("-1819413477243867904")
So I would assume that if you find by NumberLong("-1819413477243867904") you would magically find your record, which would probably prove that your hash is hitting some sort of mongo db limit if NumberLong.