I couldn't find an example of GridFS integration and I spent some time making it work correctly. Just thought it could be useful for someone else, so I created a PR that adds example to docs.
It would be also great to add link to this example to wiki.
By the way, is it planned to add something like onAfterRemove hook? I also tried to use onBeforeRemove instead of rewriting remove method but it doesn't fire for some reason. But having onAfterRemove hook, that has access to removed documents would be even better. 😄
I couldn't find an example of GridFS integration and I spent some time making it work correctly. Just thought it could be useful for someone else, so I created a PR that adds example to docs.
It would be also great to add link to this example to wiki.
By the way, is it planned to add something like
onAfterRemovehook? I also tried to useonBeforeRemoveinstead of rewritingremovemethod but it doesn't fire for some reason. But havingonAfterRemovehook, that has access to removed documents would be even better. 😄