我正在寻找一个运算符,它允许我检查一个字段的值是否包含某个字符串.
就像是:
db.users.findOne({$contains:{"username":"son"}})
那可能吗?
mongodb
mongodb ×1