This is my first project using mongodb, I doing a file upload website and everyhting is working smooth, now what I need is to get of names of file which are duplicate by checking there checksum. All the info is already on the database here is an example of how im saving the info
{
"_id" : ObjectId("58754c4257edd7263c678fb9"),
"checksum" : "8473b6ba72ca7aa3041d3f473fb38e12",
"destination" : "upload/",
"fieldname" : "file[0]",
"mimetype" : "application/x-zip-compressed",
"size" : 4531435,
"path" : "upload/1484082242254-file-1.5.zip",
"filename" : "1484082242254-file-1.5.zip",
"originalname" : "file-1.5.zip"
}
now what i need is a mongodb query which will return the filename and/or path of all the duplicate files with the same checksum
thank you for your time and help