1- $regex

  1. var res = await MovieModel(item).find({title:{$regex:keyword}});

2- RegExp

  1. var reg = new RegExp(keyword);
  2. var res = await MovieModel(item).find({title:reg});