incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ara.t.howard" <ara.t.how...@gmail.com>
Subject Re: Document Updates
Date Fri, 14 Nov 2008 00:37:12 GMT

On Nov 13, 2008, at 5:09 PM, Chris Anderson wrote:

>
> Forgive me for throwing out a loose-cannon idea, but would it be
> easiest to provide an API where the user sends a Javascript function
> to CouchDB via the PATCH method? The function could look something
> like:
>
> function(doc) {
>  doc.my_field = "new value";
>  doc.existing_array[3] = "another new value";
>  doc.new_array = ["a", "b", 3];
>  return doc;
> }
>
> --  

yeah - i loooooooove this idea!

a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama




Mime
View raw message