Last active
December 15, 2015 12:09
-
-
Save matb33/5258260 to your computer and use it in GitHub Desktop.
Collection hooks for Meteor: allows you to run callbacks before and after any insert/update/remove to collections. Works across both server and client. Drop this file into a shared folder, for example: `/lib/external/collection-hooks.js`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MOVED: https://github.com/matb33/meteor-collection-hooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MOVED: https://github.com/matb33/meteor-collection-hooks |
Thank you Mathieu! Exactly what I was looking for )
Haven't you published it as mrt package, have you?
Please note that I've made improvements to this code, which are available as a smart package: https://github.com/matb33/meteor-collection-hooks
The new version supports allow/deny in the "before" hooks.
yeah collection hooks should be standard package with meteor.js. awesome.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just what I need. I'm using Meteor CollectionAPI and
Meteor.deny
does not work for me. However this works like a charm!