UNPKG

kindagoose

Version:
17 lines 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getModelToken = void 0; const get_connection_token_1 = require("./get-connection-token"); /** * Get model injection token * @param {string} typegooseClassName - Name of Typegoose schema class * @param {string} connectionName */ const getModelToken = (typegooseClassName, connectionName) => { if (connectionName === undefined) { return `${typegooseClassName}Model`; } return `${(0, get_connection_token_1.getConnectionToken)(connectionName)}/${typegooseClassName}Model`; }; exports.getModelToken = getModelToken; //# sourceMappingURL=get-model-token.js.map