added 'all' and 'elemMatch' operators into query checking