MongoDB Shell: find by BinData -
i have document in mongodb
{ "_id" : objectid("51723a2f2b9b90e9eb190c45"), "d" : bindata(0,"c9f0f895fb98ab9159f51fd0297e236d") }
the field "d" indexed, how can find value in mongo shell?
e.g.
db.test.find( {"d": bindata(0,"c9f0f895fb98ab9159f51fd0297e236d") } )
not working, idea?
bindata base64 representation of binary string.must instantiated.
db.test.find( {"d": new bindata(0,"c9f0f895fb98ab9159f51fd0297e236d") } )
Comments
Post a Comment