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

Is there a way to circumvent specific hooks? For example: ```javascript test.before.update('resizeImages', function (userId, doc, fieldNames, modifier, options) { // ... }); test.withoutHooks('resizeImages').update({_id: "test"}, {$set: {test: 1}}) ```

Based on #84 I could add hooks to CollectionFS ``` Attachments = new FS.Collection('attachments', ...); Attachments.files.before.insert((userId, doc) => {}); ``` Now, in some cases, I need to directly insert attachments...

I am using collection2, simple-schema and meteor-collection-hooks. **First test** ``` javascript // posts.js Posts = new Mongo.Collection("posts"); Posts.before.insert((userId, doc) => { console.log('Should see this'); }); //////////////////////////////////////////////////////////////// // Then in meteor...

How do I catch exceptions? This code does not print out an error, where it should throw an exception as b is undefined. ``` Projects.after.insert(function (userId, doc) { try {...

I have a collection with a find hook attached to it. Inside of a meteor.publish, I have an observeChanges callback that is effectively doing a reactive join. The problem is...

Hey, great package thanks a lot. I've been having trouble with the after.insert method. `Listings.after.insert(function(userId, doc) { Meteor.users.update( {_id: userId}, { $push: { "profile.listings.$": doc._id } } ) });` Like...

Is it possible to allow asynchronous hooks to delay the execution of the underlying operation? This could be achieved like so: ``` var done = this.async(); setTimeout(function() { done(); },...

question

Hello, I'm trying to get these to work with api calls. I'm having a lot off trouble because the rest api doesn't use ddp and I can't get the user...

Sometimes in "after.update" hook the value of "this.previous" document is undefined. That happens when you make an update call inside a callback, wrapped with bindEnvironment. I provided a simple example...

bug

Hi, @matb33 [Here's a repo to reproduce the error](https://github.com/YuHuaiChen/meteor-collection-hooks-and-collection2-error) When inserting inside meteor method, only client side runs the before.insert hook before collection2 's schema check. Server side won't run...

bug