Yes, update handlers need to be requested explicitly.
No, CouchDB doesn't provides any method to change your documents
automagically on PUT. It's not oblivious how this feature should work
in case of replication.
Normally, you don't need any server side. All you need is to ensure
that the clients are send you valid documents (e.g. setup
validate_doc_update functions). Will they call update handlers or will
they implement update handle logic on their side is not a question you
should concern. Valid data is.
--
,,,^..^,,,


On Thu, Jan 29, 2015 at 12:12 PM, Kiril Stankov <[email protected]> wrote:
> Hi,
>
> I'm new to CouchDB and I have a question about updates.
> It seems that I misunderstood how they work.
> I assumed that they are automatically called upon submitting or modifying a
> document to the db.
> For example, I add a document and I want a field 'createddate' to be
> automatically filled with current time stamp.
>
> Now I realize that to make an update run, I need to call it's URL.
>
> Is there a way to achieve what I need or I should add the logic to my server
> side code?
>
> Thanks in advance!
> ------------------------------------------------------------------------
> *With best regards,*
> Kiril Stankov,
>

Reply via email to