json-api-store icon indicating copy to clipboard operation
json-api-store copied to clipboard

Add read-only option to Store.attr(), Store.hasMany() and Store.hasOne()

Open haydn opened this issue 9 years ago • 1 comments

The needs to be support for read-only attributes:

var store = new Store();
store.define("products", {
  commentCount: Store.attr({ readOnly: true })
});

Attributes that are read only are fetch from the API, but can't be updated.

haydn avatar Sep 29 '15 05:09 haydn

This should also be available for hasOne() and hasMany().

haydn avatar Oct 04 '15 02:10 haydn