我想进行完整的动态搜索,当用户习惯于在搜索框中的书店用户界面中键入一个或两个图书字符串时,它应该从我的图书表中带来所有匹配值,这些匹配值可以是整个我的表.
const searchObjects = req.query;
const result =await modelbook.find({
//this place is for query that i don't know how I should write
});
res.status(200).json({resultis: result});
})
图书模型具有这些特性