丁同亚的博客

夺朱非正色

导航

2021年5月24日 #

mongoose纲要和模型(schema&model)

摘要: 根据纲要(Schema)和dataBase中的集合(Collection)创建模型(Model) Schema(纲要):并没有实质性的操作集合,只是在程序中设定了一些规则,然后应用规则到数据库集合中来创建model. const userSchema= new mongoose.Schema({ / 阅读全文

posted @ 2021-05-24 10:24 丁同亚的博客 阅读(255) 评论(0) 推荐(0)