erikvold
erikvold

Reputation: 16508

Using node-couchdb to query a database

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?

Upvotes: 0

Views: 46

Answers (1)

Ingo Radatz
Ingo Radatz

Reputation: 1225

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.

Upvotes: 1

Related Questions