It’s hard to tell from your post, but note that 0 is falsy in Javascript, so if 
you’re doing something like “if (value) { emit(value) }” then values of 0 will 
not get emitted.

> On 1 Dec 2016, at 01:00, Vincent Lextrait <> wrote:
> Hello,
> There must be something I do which is badly wrong, I am using emit with a
> numeric key. It is so simple that I cannot believe it is a couchdb bug.
> It works fine with all keys which are not 0, and documents are properly
> inserted in the view. When the key is 0, emit does not seem to generate an
> insertion in the view.
> Any idea?
> Thanks a lot,
> Vincent

Reply via email to