Skip to content

BBWeb/racer-subscription-enhancements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Racer/Derby plugin for a broader fetch/sub syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published