(name: EntityName<T> | string)
| 137 | } |
| 138 | |
| 139 | getCollection<T extends object>(name: EntityName<T> | string): Collection<T> { |
| 140 | return this.getDb().collection<T>(this.getCollectionName(name)); |
| 141 | } |
| 142 | |
| 143 | async createCollection<T extends object>(name: EntityName<T>): Promise<Collection<T>> { |
| 144 | return this.getDb().createCollection(this.getCollectionName(name)); |