Comparing version 0.0.26 to 0.0.27
@@ -119,6 +119,10 @@ /** | ||
MongoDB.prototype.collection = function (name) { | ||
if (!this.collections[name]) { | ||
this.collections[name] = new mongodb.Collection(this.client, name); | ||
if(this.client.collection) { | ||
return this.client.collection(name); | ||
} else { | ||
if (!this.collections[name]) { | ||
this.collections[name] = new mongodb.Collection(this.client, name); | ||
} | ||
return this.collections[name]; | ||
} | ||
return this.collections[name]; | ||
}; | ||
@@ -125,0 +129,0 @@ |
{ | ||
"name": "caminte", | ||
"description": "ORM for every database: redis, mysql, neo4j, mongodb, rethinkdb, postgres, sqlite, tingodb", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Aleksej Gordejev", |
640681
12610