racer-subscription-enhancements

0.1.1 • Public • Published

racer-subscription-enhancements

Racer/Derby plugin for a broader fetch/sub syntax

How to use

After adding the plugin:

derby.use(require('racer-subscription-enhacements'));

Run it as described below.

Features

Makes it possible to pass along scoped models into .fetch / .subscription Makes it possible to pass along collection paths into .fetch / .subscription

Basically, scoped models and collection paths are converted into queries.

$coll = model.scope('coll');
model.subscribe($coll, 'coll2',, function () {
  $coll.get(); // Returns the whole coll collection
  model.get('coll2'); // Returns the whole coll2 collection
});

Readme

Keywords

Package Sidebar

Install

npm i racer-subscription-enhancements

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • cjblomqvist