UNPKG

@webiny/api-headless-cms-ddb-es

Version:

DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.

28 lines (26 loc) 542 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createJsonIndexing = void 0; const createJsonIndexing = () => { return { type: "cms-model-field-to-elastic-search", name: "cms-model-field-to-elastic-search-json", fieldType: "json", toIndex({ value }) { return { rawValue: value }; }, fromIndex({ rawValue }) { return rawValue; } }; }; exports.createJsonIndexing = createJsonIndexing; //# sourceMappingURL=jsonIndexing.js.map