Achievement that I want got is query like this in MySQL
UPDATE FROM inbox
SET unread = unread + 1
WHERE
projectID = ? AND
userID IN ("A", "B, "C")
Is MongoDB have query IN like that in MySQL?
I have tried this in Go using https://github.com/mongodb/mongo-go-driver
_, err = m.db.Collection("inbox_counter").UpdateMany(ctx, bson.M{
"userID": bson.D{{"$in", userIDs}},
"projectID": e[0].ProjectID,
}, bson.D{
{"$inc", bson.D{{"unread", 1}}},
}, options.Update().SetUpsert(true))
But it have no effect to my collections
userIDslook like?userIDsis[]stringit is array of user id