Meteor-Community-Packages / meteor-collection-hooks

Meteor Collection Hooks
https://atmospherejs.com/matb33/collection-hooks
MIT License
656 stars 90 forks source link

Support to Meteor 2.8 and Mongo async methods #288

Closed lubianm closed 9 months ago

lubianm commented 1 year ago

Is there already a plan to support Mongo async methods and align the project to the changes being made starting from Meteor 2.8? Rif. https://github.com/meteor/meteor/discussions/11505 and https://github.com/meteor/meteor/pull/12028

StorytellerCZ commented 1 year ago

I'm aware, but I don't know when I'm going to get to it. PRs welcomed!

bratelefant commented 1 year ago

I actually tried to understand and modify this, in order to get "before" hook working for "insertAsync", but I really don't have a clue where to start. Do i need a new "insertAsync.js" advice?

alisnic commented 10 months ago

@StorytellerCZ what about Collection.direct.insertAsync and friends? are there plans to implement this?

StorytellerCZ commented 10 months ago

@alisnic PRs welcome!

alisnic commented 10 months ago

@StorytellerCZ easy https://github.com/Meteor-Community-Packages/meteor-collection-hooks/pull/300