meteor-collection-hooks icon indicating copy to clipboard operation
meteor-collection-hooks copied to clipboard

Meteor Collection Hooks

Results 60 meteor-collection-hooks issues
Sort by recently updated
recently updated
newest added

I installed meteor-collection-hooks from the repo (`cd packages`, `git clone https://github.com/matb33/meteor-collection-hooks` and `meteor add matb33:collection-hooks`) and switched to branch meteor-1.6.1 because I had the error #76. I am now facing...

bug

Hi everyone We have a weird issue that makes collection hooks not to run (the callbacks are not even run) for some weird reason some times. We have a cluster...

```javascript //This works People.direct.update(person._id, {$set: {name: user.profile.name}}) //This doesn't do anything People.direct.update({email: email}, {$set: {name: user.profile.name}}) ```

It would be handy to be able to simulate (using the initial doc + the modifier) what the doc _after update_ would look like. It would make things like security...

enhancement

Hit another nasty bug with collection hooks today in production. Wanted to leave it here in case I jump in and try to fix these. My use case is inserting...

I'm on Meteor 1.5.1. I have a collection defined in `/collections` (so server and client) with a hook like this: `Widgets.after.insert(function(userId, doc) {...};` On the client in a template click...

Something like ``` CollectionHooks.after.remove: function (userId, doc) { // ... }); ``` that runs after a doc is removed from any collection. Use case: http://stackoverflow.com/questions/29638910/how-can-you-log-all-mongo-write-commands

enhancement

I was using this package at version 0.8.1 with Meteor 1.2, I also changed the package locally to have the ability to have an options parameter for insert and remove...

Let's use `DDP._CurrentPublicationInvocation` to get the `userId` if it's available, otherwise fall back to the current method to be backwards-compatible. Possible since https://github.com/meteor/meteor/pull/8629.

enhancement

I've been using this package for years and love it. I'm upgrading to Meteor 1.5, and I'm running to an issue with asynchronous tasks that are called from update hooks....