I want search whole string when I type any word, it's matched only first Character not matched whole string and middle character of string.
query.and.push({ or: [{ name: { like: '^' + data.searchTextNEM + '.*', options: 'i' } }, { email: { like: '^' + data.searchTextNEM + '.*', options: 'i' } },{ phone: { like: '^' + data.searchTextNEM + '.*', options: 'i' } }]});
Users.find({where: query, limit: data.limit,skip: data.skip },function(err,res){})
Like I have two string 1.mark and 2.denim if I type 'm' my response should be mark and denim but getting response only mark