couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCaffrey" <mmccaff...@ittvis.com>
Subject RE: reference colon(:) in field names
Date Wed, 26 Aug 2009 16:38:56 GMT
Yeah!  
Thanks

-----Original Message-----
From: Zachary Zolton [mailto:zachary.zolton@gmail.com] 
Sent: Wednesday, August 26, 2009 10:33 AM
To: user@couchdb.apache.org
Subject: Re: reference colon(:) in field names

See here for more:

http://www.jibbering.com/faq/faq_notes/square_brackets.html

On Wed, Aug 26, 2009 at 11:31 AM, Zachary
Zolton<zachary.zolton@gmail.com> wrote:
> It's just dereferencing a JavaScript member name:
>
> doc["spec:package_name"]
>
> On Wed, Aug 26, 2009 at 11:20 AM, Michael
> McCaffrey<mmccaffrey@ittvis.com> wrote:
>> How does one reference a field name in a document that has a colon in
>> it?
>>
>> For instance, document has a field named spec:package_name
>>
>> Putting doc.spec:package_name will not compile in a view function.
>>
>> Thanks
>>
>

Mime
View raw message