typegoose-cursor-pagination
typegoose-cursor-pagination copied to clipboard
Autocomplete search
Hello, is it somehow possible to use autocomplete
search?
{
"$search": {
"autocomplete": {
"query": `${request.query.term}`,
"path": "name",
"fuzzy": {
"maxEdits": 2,
"prefixLength": 3,
},
},
},
},
This will fail with error like this
unknown top level operator: $search. If you have a field name that starts with a '$' symbol, consider using $getField or $setField.