Comparing version 0.0.11 to 0.1.0
@@ -12,2 +12,3 @@ 'use strict'; | ||
exports.Types = { | ||
ObjectId: ObjectID, | ||
ObjectID: ObjectID | ||
@@ -63,3 +64,3 @@ }; | ||
exports.find = function (query, fields, options, callback) { | ||
exports.find = function (query, fields, options) { | ||
var collection = GC(this); | ||
@@ -173,3 +174,13 @@ var callback = arguments[arguments.length - 1]; | ||
exports.model = function (collection) { | ||
function CollectionModel(o) { | ||
ModelInstance.call(this, o); | ||
} | ||
CollectionModel.__proto__ = ModelInstance; | ||
CollectionModel.init = null; | ||
return CollectionModel; | ||
}; | ||
exports.prototype.save = function (done) { | ||
@@ -176,0 +187,0 @@ done = done || function (err) { |
{ | ||
"name": "mong", | ||
"version": "0.0.11", | ||
"version": "0.1.0", | ||
"description": "Lightweight models for mongodb objects", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
11655
283