Description
http://guide.couchdb.org/draft/views.html#many
To make things a little nicer and to prepare for a future example, we are going to change the format of our date field. Instead of a string, we are going to use an array, where individual members are part of a timestamp in decreasing significance. This sounds fancy, but it is rather easy. Instead of:
I'm not sure that this properly explains that we're updating the Documents themselves. I was really scratching my head thinking that I had to change the Map function. Suggestion:
To simplify matters (and prepare for a future example), we are going to modify our Documents to store dates differently. Instead of a string, we are going to use an array, where individual members are part of a timestamp in decreasing significance. This sounds fancy, but it is easy. Instead of:
Then the rest falls into place