You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I would like to add a simple functionality using update function in design document. I would like it to be invoked when a document is changed/created in Fauxton.
Normally, one has to call the update function explicitly, but this (I believe) not possible with Fauxton.
Is there any way to achieve behaviour described above? Maybe it's possible to set an update function as default, so it doesn't require explicit call?
Thanks!
The text was updated successfully, but these errors were encountered:
The idea has come up before but it is has always been rejected, for similar reasons to your other ticket.
What you can do is use a validate_doc_update function to ensure only valid updates are made (you can compare the new incoming update to the current document to ensure any state transition constraints) and provide an update handler to your clients to make it easier to create a valid update.
Hello,
I would like to add a simple functionality using update function in design document. I would like it to be invoked when a document is changed/created in Fauxton.
Normally, one has to call the update function explicitly, but this (I believe) not possible with Fauxton.
Is there any way to achieve behaviour described above? Maybe it's possible to set an update function as default, so it doesn't require explicit call?
Thanks!
The text was updated successfully, but these errors were encountered: