So I have a field called \'city\' in my results...the results are corrupted, some times it\'s an actual name, sometimes it\'s a number. The following code displays all the recor
You can also use an in command
in
db.zips.aggregate([ { $project: { first_char: { $substr : ["$city",0,1] }, "_id":"$_id" } }, { $match: { first_char: { $in: ["0","1","2","3","4","5","6","7","8","9"] } } } ])