sails-mongo
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -255,2 +255,4 @@ /*--------------------------------------------------------------- | ||
if (data.length === 0) {return cb(null, []);} | ||
var connectionObject = connections[connectionName]; | ||
@@ -378,2 +380,7 @@ var collection = connectionObject.collections[collectionName]; | ||
join: function (connectionName, collectionName, criteria, cb) { | ||
// Ignore `select` from waterline core | ||
if (typeof criteria === 'object') { | ||
delete criteria.select; | ||
} | ||
@@ -380,0 +387,0 @@ var connectionObject = connections[connectionName]; |
@@ -61,2 +61,7 @@ | ||
// Ignore `select` from waterline core | ||
if (typeof criteria === 'object') { | ||
delete criteria.select; | ||
} | ||
// Catch errors from building query and return to the callback | ||
@@ -68,3 +73,3 @@ try { | ||
} | ||
var collection = this.connection.db.collection(self.identity); | ||
@@ -142,2 +147,7 @@ | ||
// Ignore `select` from waterline core | ||
if (typeof criteria === 'object') { | ||
delete criteria.select; | ||
} | ||
// Catch errors build query and return to the callback | ||
@@ -196,2 +206,7 @@ try { | ||
query; | ||
// Ignore `select` from waterline core | ||
if (typeof criteria === 'object') { | ||
delete criteria.select; | ||
} | ||
@@ -239,2 +254,7 @@ // Catch errors build query and return to the callback | ||
var query; | ||
// Ignore `select` from waterline core | ||
if (typeof criteria === 'object') { | ||
delete criteria.select; | ||
} | ||
@@ -241,0 +261,0 @@ // Catch errors build query and return to the callback |
{ | ||
"name": "sails-mongo", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "Mongo DB adapter for Sails.js", | ||
@@ -5,0 +5,0 @@ "main": "./lib/adapter.js", |
62474
1787