node mongodb $ atau

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