We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115281b commit 3ace495Copy full SHA for 3ace495
packages/shell-api/src/mongo.ts
@@ -267,7 +267,7 @@ export default class Mongo<
267
}
268
269
if (!(name in this._databases)) {
270
- this._databases[name] = new Database(this, name) as DatabaseWithSchema<
+ this._databases[name] = new Database<M>(this, name) as DatabaseWithSchema<
271
M,
272
M[K]
273
>;
packages/shell-api/src/session.ts
@@ -62,7 +62,7 @@ export default class Session<
62
63
64
65
- this._databases[name] = new Database(
+ this._databases[name] = new Database<M>(
66
this._mongo,
67
name,
68
this
0 commit comments