summaryrefslogtreecommitdiffstats
path: root/node_modules/mquery/lib/collection/node.js
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/mquery/lib/collection/node.js
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/mquery/lib/collection/node.js')
-rw-r--r--node_modules/mquery/lib/collection/node.js151
1 files changed, 0 insertions, 151 deletions
diff --git a/node_modules/mquery/lib/collection/node.js b/node_modules/mquery/lib/collection/node.js
deleted file mode 100644
index cc07d60..0000000
--- a/node_modules/mquery/lib/collection/node.js
+++ /dev/null
@@ -1,151 +0,0 @@
-'use strict';
-
-/**
- * Module dependencies
- */
-
-var Collection = require('./collection');
-var utils = require('../utils');
-
-function NodeCollection(col) {
- this.collection = col;
- this.collectionName = col.collectionName;
-}
-
-/**
- * inherit from collection base class
- */
-
-utils.inherits(NodeCollection, Collection);
-
-/**
- * find(match, options, function(err, docs))
- */
-
-NodeCollection.prototype.find = function(match, options, cb) {
- this.collection.find(match, options, function(err, cursor) {
- if (err) return cb(err);
-
- try {
- cursor.toArray(cb);
- } catch (error) {
- cb(error);
- }
- });
-};
-
-/**
- * findOne(match, options, function(err, doc))
- */
-
-NodeCollection.prototype.findOne = function(match, options, cb) {
- this.collection.findOne(match, options, cb);
-};
-
-/**
- * count(match, options, function(err, count))
- */
-
-NodeCollection.prototype.count = function(match, options, cb) {
- this.collection.count(match, options, cb);
-};
-
-/**
- * distinct(prop, match, options, function(err, count))
- */
-
-NodeCollection.prototype.distinct = function(prop, match, options, cb) {
- this.collection.distinct(prop, match, options, cb);
-};
-
-/**
- * update(match, update, options, function(err[, result]))
- */
-
-NodeCollection.prototype.update = function(match, update, options, cb) {
- this.collection.update(match, update, options, cb);
-};
-
-/**
- * update(match, update, options, function(err[, result]))
- */
-
-NodeCollection.prototype.updateMany = function(match, update, options, cb) {
- this.collection.updateMany(match, update, options, cb);
-};
-
-/**
- * update(match, update, options, function(err[, result]))
- */
-
-NodeCollection.prototype.updateOne = function(match, update, options, cb) {
- this.collection.updateOne(match, update, options, cb);
-};
-
-/**
- * replaceOne(match, update, options, function(err[, result]))
- */
-
-NodeCollection.prototype.replaceOne = function(match, update, options, cb) {
- this.collection.replaceOne(match, update, options, cb);
-};
-
-/**
- * deleteOne(match, options, function(err[, result])
- */
-
-NodeCollection.prototype.deleteOne = function(match, options, cb) {
- this.collection.deleteOne(match, options, cb);
-};
-
-/**
- * deleteMany(match, options, function(err[, result])
- */
-
-NodeCollection.prototype.deleteMany = function(match, options, cb) {
- this.collection.deleteMany(match, options, cb);
-};
-
-/**
- * remove(match, options, function(err[, result])
- */
-
-NodeCollection.prototype.remove = function(match, options, cb) {
- this.collection.remove(match, options, cb);
-};
-
-/**
- * findAndModify(match, update, options, function(err, doc))
- */
-
-NodeCollection.prototype.findAndModify = function(match, update, options, cb) {
- var sort = Array.isArray(options.sort) ? options.sort : [];
- this.collection.findAndModify(match, sort, update, options, cb);
-};
-
-/**
- * var stream = findStream(match, findOptions, streamOptions)
- */
-
-NodeCollection.prototype.findStream = function(match, findOptions, streamOptions) {
- return this.collection.find(match, findOptions).stream(streamOptions);
-};
-
-/**
- * var cursor = findCursor(match, findOptions)
- */
-
-NodeCollection.prototype.findCursor = function(match, findOptions) {
- return this.collection.find(match, findOptions);
-};
-
-/**
- * aggregation(operators..., function(err, doc))
- * TODO
- */
-
-/**
- * Expose
- */
-
-module.exports = exports = NodeCollection;