Skip to content

Commit

Permalink
0.5.0-pre.17
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmchase committed Aug 8, 2023
1 parent de53209 commit 4fc5c95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/mongo/mod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
Database,
Document,
MongoClient,
parseConnectionString,
} from "../../../deps/mongo.ts";
Expand All @@ -16,8 +17,8 @@ export class MongoService {
) {
}

public collection(name: string) {
return this.db.collection(name);
public collection<T extends Document = Document>(name: string) {
return this.db.collection<T>(name);
}

public close() {
Expand Down

0 comments on commit 4fc5c95

Please sign in to comment.