I would like to find a list of different values with unique _id but the problem is that they are saved as String and if I try to search f.e 10 it finds me also 100, 101, 102 etc.. In my case { "_id" : { "$gte" : "10" , "$lte" : "15"}}
I would like to find 10, 11, 12, 13, 14, 15. But it finds me also 100, 110, 120 etc..
Thanks for your help
You have two more options:
$regex
query: {_id : /^1[0-5]/}
(not sure about the PCRE syntax)_id
and query that new fieldCollected from the Internet
Please contact [email protected] to delete if infringement.
Comments