Object Manager
An Object Manager is the interface through which database query operations are provided to Djorm models. It is accessible via objects
property on each model. It provides a subset of Query properties and methods.
Each Object Manager has a default query, which can be overriden
createWriteStream
#
Stream insert model instances with Node.js streams.
all
#
Promise to return all model instances
first
#
Promise to return first model instance
get
#
Filter model instances and get the first one or throw ObjectDoesNotExist
count
#
Promise to count all model instances
stream
#
Stream read model instances with Node.js streams. Returns instance of Readable.
filter
#
Create a filtered query
orderBy
#
Create sorted query