Give your data the treatment it deserves with a framework-agnostic, datastore-agnostic JavaScript ORM built for ease of use and peace of mind. Works in Node.js and in the Browser. Main Site: http://js-data.io, API Reference Docs: http://api.js-data.io/js-data
3.0.0-alpha.11 is a major refactor from the previous version!
Collection#modelOpts
optionDS#defineModel
DS
is now just a container for Model
classes. It no longer stores data or
metadata.Model
is essentially a constructor function, which can be used to create
instance of the Model. A Model has static methods like find
and create
. The
prototype of a Model defines behavior for instances of the Model. Models can be
defined using ES6 class syntax. A Model must be "initialized" in order to be
able to store data. A Model is automatically initialized if a schema is defined
for the Model, or if the Model is created using the .extend
method, or the
legacy DS#defineResource
or DS#defineModel
methods.