couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <kocol...@apache.org>
Subject Re: How to change JSON before storing
Date Tue, 27 Apr 2010 12:48:26 GMT
No, validation functions cannot modify documents.  The usual reason given is that they run
during replication as well as during client updates.

Adam

On Apr 27, 2010, at 8:40 AM, Andreas Köberle wrote:

> Unfortunately _updates doesn't work for me cause YSLOW send with POST
> and I get a "Only DELETE,GET,HEAD,PUT allowed" error. Could I use
> validate_doc_update instead?
> 
> 
> On 27 April 2010 14:12, Adam Kocoloski <kocolosk@apache.org> wrote:
>> That's correct, Simon, _update handlers don't work with _bulk_docs today.  Best,
>> 
>> Adam
>> 
>> On Apr 27, 2010, at 8:07 AM, Simon Metson wrote:
>> 
>>> Hi,
>>>       Is it possible to apply an update function to a bulk insert? From reading
that page it sounds like not...
>>> Cheers
>>> Simon
>>> 
>>> On 27 Apr 2010, at 11:05, Sebastian Cohnen wrote:
>>> 
>>>> The answer is yes, to make it short :)
>>>> 
>>>> http://wiki.apache.org/couchdb/Document_Update_Handlers
>>>> 
>>>> 
>>>> On 27.04.2010, at 11:56, Andreas Köberle wrote:
>>>> 
>>>>> Is there a way to add data to a JSON Object with couchdb, before
>>>>> storing it. I've got data direct from YSlow firefox extension but
>>>>> unfortunately without a timestamp.
>>>> 
>>> 
>> 
>> 


Mime
View raw message