lore-hook-collections

Creates a Collection for each model in the application

Installation

First install the hook:

npm install lore-hook-collections --save

Then add the hook to your index.js file.

// index.js
import collections from 'lore-hook-collections';
import connections from 'lore-hook-connections';
import models from 'lore-hook-models';

lore.summon({
  hooks: {
    collections,
    connections,
    models
  }
});