Clean mongoDB collection with Ruby
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I have a collection in a local MongoDB with the following attributes:


each userId appears at least once

for each userId 1...max
count how many times it is present
for count < 5
delete all records with that userId

I'm unclear about what the question is. Do you want to convert that for loop into ruby code?
sguha over 5 years ago

Crowdsource coding tasks.

0 Solutions