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:

userId
movieId
rating

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 3 years ago

Crowdsource coding tasks.

0 Solutions