Querying
Blini uses an immutable version of mquery to build MongoDB queries.
Comparing to Mongoose, Blini queries doesn't have a .then
and promise interface, you have to explicitly call '.exec()'.
Execute the query
Query.exec(): Promise<List>
.exec
returns a promise resolving with a list of all documents
Stream documents
Query.stream(): ReadableStream
.exec
returns a list of all documents by accumulating results from MongoDB.
Query one document
Query.findOne(): Query
Last updated