Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The "Document_Update_Handlers" page has been changed by Matt Freeman.
The comment on this change is: clarify usage.
http://wiki.apache.org/couchdb/Document_Update_Handlers?action=diff&rev1=13&rev2=14

--------------------------------------------------

  }}}
  NOTE: '''The functions should be quoted'''.
  
- The handler function takes the document and the http request as parameters. 
It returns a two-element array: the first element is the (updated) document, 
which is committed to the database. The second element is the response that 
will be sent back to the caller.
+ The handler function takes the document and the http request as parameters. 
It returns a two-element array: the first element is the (updated or new) 
document, which is committed to the database. If the first element is null no 
document will be committed to the database. The second element is the response 
that will be sent back to the caller.
  
  == Usage ==
  To invoke a handler, use one of:

Reply via email to