couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@hahnca.com>
Subject Re: Question in viewings
Date Mon, 16 Jun 2014 20:22:40 GMT
Actually a number should work since it will be coerced into a string.  At
least this happens in Chrome.

I know using auto-coercion is uncool but I thought I'd just throw that out
there.


On Mon, Jun 16, 2014 at 12:40 PM, Jens Alfke <jens@couchbase.com> wrote:

>
> On Jun 16, 2014, at 3:29 AM, Pieter van der Eems <
> p.van.der.eems@interactiveblueprints.nl> wrote:
>
> > doc[123];
>
> That should be
>         doc["123"];
> since the key is a string, not a number.
>
> —Jens

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message