How to use the webiny-entity.EntitiesAttribute.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 / filesAttribute.js View on Github external
async getValue() {
        let values = await EntitiesAttribute.prototype.getValue.call(this);
        Array.isArray(values) &&
            values.map(value => {
                if (value instanceof this.getEntitiesClass()) {
                    if (this.storage) {
                        value.setStorage(this.storage).setStorageFolder(this.storageFolder);
                    }
                }
            });

        return values;
    }
github webiny / webiny-js / packages-utils / webiny-entity-mysql / src / model / attributes / entitiesAttribute.js View on Github external
async getStorageValue() {
        return JSON.stringify(await BaseEntitiesAttribute.prototype.getStorageValue.call(this));
    }
github webiny / webiny-js / packages / webiny-entity-mysql / src / model / attributes / entitiesAttribute.js View on Github external
async getStorageValue() {
        return JSON.stringify(await BaseEntitiesAttribute.prototype.getStorageValue.call(this));
    }