Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Support calculated fields for Loopback entities #36

Closed
KalleV opened this issue May 29, 2023 · 0 comments
Closed

Support calculated fields for Loopback entities #36

KalleV opened this issue May 29, 2023 · 0 comments

Comments

@KalleV
Copy link

KalleV commented May 29, 2023

Is your feature request related to a problem? Please describe.

It would be great to add support for the Virtual data type for calculated fields:
https://sequelize.org/docs/v6/core-concepts/getters-setters-virtuals/#virtual-fields

This would also provide a big improvement over the limited support and workarounds for calculated fields when using the Loopback juggler ORM: loopbackio/loopback-next#2707

Describe the solution you'd like
Ability to configure the virtual data type for Loopback entities.

Describe alternatives you've considered
A workaround I found is to define a global Sequelize hook and then mutate the attribute definitions in a beforeDefine hook to switch them to the Sequelize virtual data type.

@yeshamavani yeshamavani assigned karuneshsf and unassigned karuneshsf Jan 19, 2024
@shubhamp-sf shubhamp-sf closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants