Updating i 9 documents
And that's how we end up looping through each of the documents in the collection.
This course will get you up and running with Mongo DB quickly, and teach you how to leverage its power for data analytics.
It's not an integer, so we can't do range queries.
We can't do any of the types of analysis we'd really like to be able to do because it's a string, and a string that's in an inconvenient form at that.
In the body of this loop, this is where we are building those dictionaries that we see as the values for set and unset in the update document.
So the first thing that I do here is loop through all of the fields, pulling out the individual keys and values for each document as we pass through the loop.Here I'm simply changing the name of full Plot so that it is camelcase, and doing that same change here to use rated versus rating.