Every line of 'mongoose join two collections' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
306 join(join){ 307 if (!join) { 308 return this; 309 } 310 if (!this._options.join) { 311 this._options.join = []; 312 } 313 if (helper.isArray(join)) { 314 this._options.join = this._options.join.concat(join); 315 }else{ 316 this._options.join.push(join); 317 } 318 return this; 319 }