client-data-source
Module for dynamically creating Data source and assigning to Model
Installation
npm install client-data-source --save
Usage
var clientdatasource = require('client-data-source') yourModel.js
yourModel.observe('before save', function (ctx, next) {
clientDataSource(yourModel, ctx, next)
});
yourModel.observe('access', function (ctx, next) {
clientDataSource(yourModel, ctx, next)
});
Tests
N / A
Contributing
Release History
- 0.1.0 Initial release