Skip to content

Instantly share code, notes, and snippets.

@matb33
Last active December 15, 2015 12:09
Show Gist options
  • Save matb33/5258260 to your computer and use it in GitHub Desktop.
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`
MOVED: https://github.com/matb33/meteor-collection-hooks
MOVED: https://github.com/matb33/meteor-collection-hooks
@matb33
Copy link
Author

matb33 commented Jun 1, 2013

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.

@crapthings
Copy link

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