Search code examples
javascriptcouchdbcloudant

Passing empty key in startkey array for a view


I have a view returning multiple keys. My only question is: how do I retrieve all the data, if I don't have a specific key ? For example: I want to retrieve data for a specific id, no problem. But when I want all data for all ids, I can't put 'any' or '{}' or anything else. It just won't work. Is there any workaround ?

startkey: [null, queryDate.from],
endkey: [null, queryDate.to, {}],
    
    
// here I put null, but won't work...


Solution

  • In vector-valued keys you can only wild-card from the end, not the beginning.