Skip to content

yasaricli/collection-hook-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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() {}
  });