由于mongoose 出现很早, 它是以Object 的形式来定义Schema. 但是随着Typescript 的流行, ts 和mongoose 结合使用时, 定义Model 类型时不能直接使用Schema ...
確定! 回上一頁