我正在将我的JS节点/express& mongoose服务器转换为Typescript,我对mongoose的数组包含方法与typescript有一个问题: Argument of type 'ObjectId' is not assignable to parameter of type '{ type: ObjectId; required: true</
我有一个关于嵌套猫鼬模式的问题。下面是一个简单的代码片段var bSchema = new Schema({a: aSchema, foo: String});这将在bSchema:TypeError: Undefined type at 's我只想问一下为什么bSchema不能工作。在“蒙哥斯医生”中找不到解释。谢谢。