npm install mojo-models --save-exact
properties- properties to set on the collection
the raw source for the collection. Should be an array.
Creates a model. This method is usually defined when extending the base collection. It's also called when deserializing each item in
data. See example above.
The id property for each model. This id "_id" by default.
creates a new model, and adds to the collection immediately. See example above.
data, and sets the returned value as the source of the array.
serializes collection into an array. alias to
See extended api on models.Base