我嘗試使用下面的代碼UPSERT數據到蒙戈集合時:當UPSERT執行(在上面的代碼最後三行) val UsersColl = "Users"
val UsersColl_AuthProvider = "AuthProvider"
val UsersColl_UserId = "UserId"
val UsersColl_Active = "Active"
val UsersColl_Sla
根據這個鏈接提供的答案在MongoDB中一個特定的值數組文件:Find document with array that contains a specific value,我曾嘗試使用此語句 searchQuery.put("arrayMine", new BasicDBObject("$in","[xxx]"));
OR
searchQuery.put("arrayMine", new B