123
This commit is contained in:
15
node_modules/@redis/search/dist/commands/SUGGET.js
generated
vendored
Normal file
15
node_modules/@redis/search/dist/commands/SUGGET.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformArguments = exports.IS_READ_ONLY = void 0;
|
||||
exports.IS_READ_ONLY = true;
|
||||
function transformArguments(key, prefix, options) {
|
||||
const args = ['FT.SUGGET', key, prefix];
|
||||
if (options?.FUZZY) {
|
||||
args.push('FUZZY');
|
||||
}
|
||||
if (options?.MAX) {
|
||||
args.push('MAX', options.MAX.toString());
|
||||
}
|
||||
return args;
|
||||
}
|
||||
exports.transformArguments = transformArguments;
|
||||
Reference in New Issue
Block a user