Polymorphic relationships #551
Unanswered
absolutejam
asked this question in
Q&A
Replies: 1 comment 1 reply
-
At the moment, this is not in the roadmap. My first thought would be that using a sealed interface (i.e. an interface with a private method) would be the best way to implement it. However the complexity comes from
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just wondered if polymorphic relationships are currently possible (I assume as a
SelectThen
), and if not, would they be on the roadmap or open to a brainstorming/proof of concept?I guess the difficult part here is how to represent the resulting types - is it a struct that is a union of all of the possible types; is it aa slice of interfaces; is it multiple relationships that contain a slice of the specific type? 🤔
Beta Was this translation helpful? Give feedback.
All reactions