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