-
Hi, I’m currently using a programmatic use case to deprecate an attribute and replace it with a new one. For instance, if I want to rename export const emailEntity = new Entity({
attributes: {
from: { type: ‘string’, required: false },
/**
* @deprecated Use senderDomain instead
*/
fromDomain: {
type: ‘string’,
required: false,
},
senderDomain: {
type: ‘string’,
required: false,
get: (item, { fromDomain }) => item ?? fromDomain,
},
},
}); |
Beta Was this translation helpful? Give feedback.
Answered by
tywalch
Mar 25, 2025
Replies: 1 comment 1 reply
-
Hi @vanenshi 👋 Check out attribute watching; it should solve your exact use case. Let me know if you have any hiccups 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vanenshi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @vanenshi 👋
Check out attribute watching; it should solve your exact use case.
Let me know if you have any hiccups 👍