We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mongoosejs
Learn more about funding links in repositories.
Report abuse
1 parent 8d00f62 commit 2871c1bCopy full SHA for 2871c1b
test/typescript/queries.ts
@@ -47,7 +47,7 @@ interface ITest extends Document {
47
48
const Test = model<ITest, Model<ITest, QueryHelpers>>('Test', schema);
49
50
-Test.find({}, {}, {populate:{path:"child", model:ChildModel, match:true}}).exec().then((res: Array<ITest>) => console.log(res))
+Test.find({}, {}, { populate: { path: 'child', model: ChildModel, match: true } }).exec().then((res: Array<ITest>) => console.log(res));
51
52
Test.find().byName('test').byName('test2').orFail().exec().then(console.log);
53
0 commit comments