【发布时间】:2017-11-09 08:55:32
【问题描述】:
下面的代码出现unknown operator: $or 错误,不知道为什么。
vc := &storers.VCategory{}
err = mndb.
C("virtualcategoryprototypes").
Find(bson.M{
"children": nil,
"deleted_by": nil,
"indexCycleNo": bson.M{"$or": []bson.M{
bson.M{"$exists": false},
bson.M{"$lt": cycle}}}}).
One(vc)
【问题讨论】: