Closed francisbyrne closed 9 years ago
I've written a hook like so:
Recordings.after.insert(function(userId, rec) { console.log('Inserted recording..................'); });
Then I tried inserting directly into the database via meteor mongo and my hook was never called.
meteor mongo
Is that expected behaviour?
It won't work if you do mongo operations directly in the mongo shell.
Gotcha, thanks.
You might be able to use Meteor's observe APIs to do something, at least after an operation.
I've written a hook like so:
Then I tried inserting directly into the database via
meteor mongo
and my hook was never called.Is that expected behaviour?