Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding Your Data with Views > Find Many > Needs clarification #553

Open
oodavid opened this issue Mar 27, 2016 · 1 comment
Open

Finding Your Data with Views > Find Many > Needs clarification #553

oodavid opened this issue Mar 27, 2016 · 1 comment

Comments

@oodavid
Copy link

oodavid commented Mar 27, 2016

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

@oodavid
Copy link
Author

oodavid commented Mar 27, 2016

Also, the example Documents all use 2009, but the queries use 2010...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant