Files
micro-service-api/node_modules/@redis/search/dist/lib/commands/ALTER.js

19 lines
656 B
JavaScript
Raw Normal View History

2025-11-11 12:36:06 +07:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const CREATE_1 = require("./CREATE");
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Alters an existing RediSearch index schema by adding new fields.
* @param parser - The command parser
* @param index - The index to alter
* @param schema - The schema definition containing new fields to add
*/
parseCommand(parser, index, schema) {
parser.push('FT.ALTER', index, 'SCHEMA', 'ADD');
(0, CREATE_1.parseSchema)(parser, schema);
},
transformReply: undefined
};
//# sourceMappingURL=ALTER.js.map