会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
丁同亚的博客
夺朱非正色
博客园
新随笔
新文章
联系
管理
2021年5月24日
mongoose纲要和模型(schema&model)
摘要: 根据纲要(Schema)和dataBase中的集合(Collection)创建模型(Model) Schema(纲要):并没有实质性的操作集合,只是在程序中设定了一些规则,然后应用规则到数据库集合中来创建model. const userSchema= new mongoose.Schema({ /
阅读全文
posted @ 2021-05-24 10:24 丁同亚的博客
阅读(240)
评论(0)
推荐(0)