UNPKG

@limejs/core

Version:
11 lines (4 loc) 222 B
### model model 层我们没有做过多的抽象,当你编写 model 时,事实上你就是在编写 mongoose 的 Scheme。 在 controller 中使用 model 时,只需 数据存储的 API 与mongoose完全一致