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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -