DB/MongoDB

mongodb gridfs - find files_id

linuxism 2014. 4. 22. 14:10


mongo shell

db.commonFS.chunks.find({"files_id" : ObjectId("5355e6f645cee14174773f03")})


umongo

{"files_id" : { "$oid" : "5355e6f645cee14174773f03"}}

oid는 files collection의 _id