I am trying to execute the query below is my query
Product.find({mobile:{contains:998888}})
I am getting error below
Could not use the provided
where
clause. Could not filter bymobile
: Acontains
(i.e. string search) modifier cannot be used with a boolean or numeric attribute (it wouldn't make any sense).
I want to search number in a column which is the data type is "int". I am using MYSQL for database.