【发布时间】:2019-08-02 00:37:27
【问题描述】:
我正在使用 MongoDB,并且我有以下人员集合架构:
Person {
age: [number]
}
我想检查一个人的年龄是否存在于数组中,例如 [15, 20, 12, 0]。我需要类似 $in 运算符但相反的东西。
架构:
initiatives : {
ressources: [
{ departement: ObjectId }
{ departement: ObjectId }
]
)
【问题讨论】: