query for finding array element from one arrzy in another arrya mongoose code example Example: mongoose query using an arry var query = PUser.find({'userID': {$in:array}});