Collection

Collection

An extended Array to represent collections of models.

Constructor

new Collection()

Methods

(async) save()

Save the collection. Currently the changes are made concurrently but NOT in a transaction.

toJSON()

Override JSON.stringify behavior

toObject()

Convert the collection to a plain object array

(static) init()

Convert results by determining whether the result is instantiable or not.