nœud mongodb $ ou

db.table.find({$or:[{"groupA":data},{"groupB":data}]}, function(err,data){
})
Good Gaur