CouchDB Ektorp Select Query

1.2k Views Asked by At

I am examining example Blog example of CouchDB. I use Ektorp at Spring for CouchDB. I wanted to implement it into my application. I have users at my couch db when I use that:

@GenerateView
@Override
public List<User> getAll() {
  ViewQuery q = createQuery("all")
    .descending(true)
    .includeDocs(true);
  return db.queryView(q, User.class);
}

However it returns just last record. Any ideas to get all users?

1

There are 1 best solutions below

0
On BEST ANSWER

It works well problem was about db names that's written at Spring configuration file.