UNPKG

@goatlab/typesense

Version:

Modern TypeScript wrapper for Typesense search engine API

11 lines 428 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.upsertSynonym = upsertSynonym; async function upsertSynonym(ctx, synonym, options) { const collectionName = options?.collection || ctx.fqcn(); return await ctx.httpClient.request(`/collections/${collectionName}/synonyms/${synonym.id}`, { method: 'PUT', body: synonym, }); } //# sourceMappingURL=upsertSynonym.js.map