@webiny/api-headless-cms-ddb-es
Version:
DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.
22 lines (21 loc) • 488 B
JavaScript
import { CmsEntryOpenSearchFieldIndex } from "../abstractions/CmsEntryOpenSearchFieldIndex.js";
class RichTextFieldIndexImpl {
fieldType = "rich-text";
toIndex({
value
}) {
return {
rawValue: value
};
}
fromIndex({
rawValue
}) {
return rawValue;
}
}
export const RichTextFieldIndex = CmsEntryOpenSearchFieldIndex.createImplementation({
implementation: RichTextFieldIndexImpl,
dependencies: []
});
//# sourceMappingURL=RichTextFieldIndex.js.map