Allows code to always be executed right before a document will be inserted and right after a document is fetched. One use case for this is schema validation before insertion. Could do other things like manage last-updated timestamps. All kinds of goodies.
Tests are included. New /manage/hooks endpoint was created.
Along the way I also fixed a couple bugs in the error handler.
Allows code to always be executed right before a document will be inserted and right after a document is fetched. One use case for this is schema validation before insertion. Could do other things like manage last-updated timestamps. All kinds of goodies.
Tests are included. New /manage/hooks endpoint was created.
Along the way I also fixed a couple bugs in the error handler.