ent icon indicating copy to clipboard operation
ent copied to clipboard

Feature Request: Add actions to patterns

Open Swahvay opened this issue 3 years ago • 2 comments

Would be great to define actions in a pattern. A use case I have is the Profile pattern's username field. Would be great to have a SetUsernameAction that can be defined once and not on every profile.

Swahvay avatar Jan 25 '22 02:01 Swahvay

yup, related https://github.com/lolopinto/ent/issues/596

i even wrote this comment today https://github.com/lolopinto/ent/blob/main/internal/schema/input/input.go#L22 when fixing https://github.com/lolopinto/ent/pull/702

lolopinto avatar Jan 25 '22 03:01 lolopinto

Great! It does make sense to me to copy most everything from Node. I’m sure having constraints and indices will be valuable too.

Swahvay avatar Jan 25 '22 05:01 Swahvay