How to use the webiny-entity.EntityAttribute.prototype function in webiny-entity

To help you get started, we’ve selected a few webiny-entity examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / webiny-api / src / attributes / fileAttribute.js View on Github external
async getValue() {
        let value = await EntityAttribute.prototype.getValue.call(this);
        if (value instanceof this.getEntityClass()) {
            if (this.storage) {
                value.setStorage(this.storage).setStorageFolder(this.storageFolder);
            }
        }

        return value;
    }