我有一个模式: name: String, tagId: mongoose.Schema.Types.ObjectIdeventSchema);var arrayOfTagsIds = [23, 55, 71];
// in this example I'm not using real: 'footba
但是,我在设置要查询的模型/模式时遇到了极大的困难。 MongoDB是MongoDB地图集,有一个包含800,000多个文档的集合。单个集合的名称是"delitosCollection“。我尝试过以下几种方法,但都没有成功: var CrimeData = mongoose.model('DelitosCollection', new Schema({}),'delitosCollection');
<em