()
| 129 | } |
| 130 | |
| 131 | getClient(): MongoClient { |
| 132 | if (!this.#client) { |
| 133 | this.createClient(); |
| 134 | } |
| 135 | |
| 136 | return this.#client!; |
| 137 | } |
| 138 | |
| 139 | getCollection<T extends object>(name: EntityName<T> | string): Collection<T> { |
| 140 | return this.getDb().collection<T>(this.getCollectionName(name)); |
no test coverage detected