mock-couch icon indicating copy to clipboard operation
mock-couch copied to clipboard

Support for design document update handlers?

Open geekytime opened this issue 9 years ago • 4 comments

Thanks for the great library. I've been looking for something like this for a while!

The docs clearly show that views are supported using addDoc, but it doesn't appear that updates functions are supported when I add design docs that have update handlers in them. We use update handlers to add simple timestamps to our docs. Am I doing something wrong, or is this feature just not supported yet.

Are update handlers a feature that you'd consider supporting, if they don't work already?

geekytime avatar Aug 07 '15 16:08 geekytime

Yes, you are right. This is something Mock-Couch is currently missing and that is important to have. I have started to work on this, so I hope is going to be ready soon.

chris-l avatar Aug 08 '15 19:08 chris-l

+1

0x1mason avatar Jun 12 '16 01:06 0x1mason

Also in need of this feature. Can I help maybe?

sagivmalihi avatar Aug 14 '16 19:08 sagivmalihi

I ended up wrapping PouchDb. A similar approach would take a lot of the implementation pressure off and just allow you to focus in the API.

0x1mason avatar Aug 17 '16 04:08 0x1mason