Mongoose CastError: Cast to embedded failed for value
问题描述最近使用mongoose遇到个错误CastError: Cast to embedded failed for value,搜了一下发现文章很少,于是写篇文章记录一下。原来代码:let mongoose = require('./mongodb');let Schema = mongoose.Schema;var ArticleSchema = new Schema({ author: { type: String, default: 'admin' }, //作者
原创
2020-06-19 11:41:57 ·
1673 阅读 ·
0 评论