client-data-source

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i client-data-source

Weekly Downloads

0

Version

1.0.2

License

ISC

Last publish

Collaborators

  • swapnil_leadcode