@webiny/api-headless-cms-ddb
Version:
DynamoDB storage operations plugin for Headless CMS API.
27 lines (24 loc) • 761 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CmsEntryFieldFilterPlugin = void 0;
var _plugins = require("@webiny/plugins");
/**
* This plugin is used to create the filter.
* Internally we have default one + the one for the reference field - because it is actually an object when filtering.
*/
class CmsEntryFieldFilterPlugin extends _plugins.Plugin {
static type = "cms.dynamodb.entry.field.filter";
static ALL = "*";
constructor(config) {
super();
this.config = config;
this.fieldType = this.config.fieldType;
}
create(params) {
return this.config.create(params);
}
}
exports.CmsEntryFieldFilterPlugin = CmsEntryFieldFilterPlugin;
//# sourceMappingURL=CmsEntryFieldFilterPlugin.js.map
;