Using node-couchdb to query a database

44 views Asked by At

I'm new to couchdb and a bit confused. I have a database of movies, and I'd like to query all (or in groups of 50) of the movies with field year equal to 2015 for example. How could I do this?

1

There are 1 answers

1
Ingo Radatz On BEST ANSWER

You have to

  1. create a view with the value of year as key
  2. request the view with the query param ?key=2015

Use ?skip= and ?limit= to paginate the response.