mongoose5的简单使用
const mongoose = require('mongoose')const url = 'mongodb://127.0.0.1:27017';const options = { useNewUrlParser: true, useUnifiedTopology: true, dbName: 'GameCityCF', user: 'user', pass: 'zH_user*3343' };mongoose.connect(url,options);mongoose.connection.
原创
2021-05-13 20:17:49 ·
173 阅读 ·
0 评论