【发布时间】:2019-02-13 18:21:46
【问题描述】:
得到错误未知的顶级运算符 $regex
搜索.vue `
let questDocuments = await conversation
.find({ query: { $limit: 100, $search: q, skippop: true } })
.then(response => {`
q 是被传递的字符串
服务挂钩
before: {
all: [],
find: [
hookBeforeFind,
search({
fields: ["label"],
deep: true
})
],
型号
const conversation = new Schema(
{
label: { type: String, required: true },
nodeId: { type: String, required: true },
details: { type: String },
url: { type: String },
creator: { type: String },
handle: { type: String },
date: { type: String },
从搜索栏中添加表达式进行搜索。例如“那个”
【问题讨论】:
标签: vue.js mongoose fuzzy-search feathersjs