So, I am trying to make use of $regex
in my query parameter
name[$regex]="^b"
This will return bob, bake, bowen etc starting with b
But, when I use regex on columns which are INTEGER like
id[$regex]="^1"
It doesn't return 1, 11, 12, 13 ... etc even though they exist in the database. So, why does $regex
fails in integer and what are the alternatives