如果我有这样的架构:
var person = new Schema({ firstName: String, lastName: String, });
我想确保只有一个文件具有相同的firstName和lastName.
我怎么能做到这一点?
mongoose
mongoose ×1