在视图的 startkey 数组中传递空键

Passing empty key in startkey array for a view

我有一个返回多个键的视图。我唯一的问题是:如果我没有特定的密钥,我该如何检索所有数据?例如:我想检索特定 id 的数据,没问题。但是当我想要所有 id 的所有数据时,我不能放 'any' 或 '{}' 或其他任何东西。它只是行不通。有什么解决方法吗?

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

在向量值键中,您只能从末尾开始使用通配符,不能从头开始。