我正在研究一个节点 + mongodb 项目。我想过滤所有活动配置文件。这是我的代码。
async getAllProfiles() { const profiles = await Profile
.find({ $where: () => activeProfile: true })
.populate('user'); return profiles;
}这不会按预期工作。我该如何解决这个问题?
陪伴而非守候
繁花如伊
喵喔喔
随时随地看视频慕课网APP
相关分类