Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 653 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 653 Bytes

collection-hook-history

Meteor package Collection (Insert, Remove, Update) Histories.

Demo

collection-hook-history.meteor.com

Installation

$ meteor add yasaricli:collection-hook-history

Usage Example

Books = new Mongo.Collection('books');

// attachCollection
CollectionHookHistory.attachCollection(Books); // insert, remove and update($set, $push, $pull)

Allow users to write directly to this Histories collection from client code, subject to limitations you define.

  CollectionHookHistory.allow({
    insert() {},
    update() {},
    remove() {}
  });