Collections

AJAX Abstraction for Lists of Resources

sync

The sync() method is a wrapper over the sync function, and allows you to modify how server calls are made for the collection.

Default Implementation

The default implementation looks like this:

import { sync } from 'lore-models';
...
sync: function(method, collection, options) {
  return sync(method, collection, options);
},

Usage

You can use override this method to take control of the server call made to the API, but it's unclear what you might want to do that. If a use case can be found, this page will be updated to demonstrate it.