Closed gabe2code closed 6 years ago
Can you try to use regexp
as the operator instead of like
?
Thanks for the quick response @raymondfeng , I try to... but still gat nothing
Thanks... @raymondfeng now it's working... I was test with regexp but with symbol $ after...
Closing as resolved.
The filter is not working, it just returns everything as if no filter is applied.
How can make a request insensitve
I try doing a regex but still recieve the same results. an example: let pattern = new RegExp(name, "gi"); User.find({where: { or: [ {name: {like: pattern}} ], }}).then(users =>{ console.log(users) }) that code always return an empty array
I try too with let pattern = new RegExp('*/'+name+ '*/', "gi"); still the same result...
thanks in advance