kindagoose
Version:
Integrate Typegoose with NestJS!
13 lines • 589 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InjectConnection = void 0;
const common_1 = require("@nestjs/common");
const get_connection_token_1 = require("../utils/get-connection-token");
/**
* Gives access directly to mongoose connection.
* @param {string} connectionName - name of connection.
* @constructor
*/
const InjectConnection = (connectionName) => (0, common_1.Inject)((0, get_connection_token_1.getConnectionToken)(connectionName));
exports.InjectConnection = InjectConnection;
//# sourceMappingURL=inject-connection.decorator.js.map