标签:mon res nta exp rom 方法 use span mongo
Node.js/ Express.js / Mongo DB/ Mongoose(ODM) /postman /
bodypaser: to receive data from requirest
创建3个services , students, teachers, classes
load express
load mongoose
connect
使用post方法传递数据到MongoDB
use findbyidAndRemove to delete data
use find and findById to search data
load mongoose
model
load express
load mongoose
connect
数据库的互动和student service 一样
我们需要 teacherID to hold teacher identitiy
用学生ID 看哪个老师来进行教授
gotdate 入学时间
标签:mon res nta exp rom 方法 use span mongo
原文地址:https://www.cnblogs.com/zackchen/p/13304374.html