你可以直接声明schema type 为某一种type,或者赋值一个含有 type 属性的对象。 var schema1 = new Schema({ test: String // `test` is a path of type String }); ...
確定! 回上一頁