Is it possible generate Record<string, ...> relations in fc.entityGraph(...)?
#6594
Unanswered
TomerAberbach
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Probably not supported yet. But maybe something to see or add later as an extension. I'm just worried about putting complexity on top of an API that is prone to be complex with just simple cases... That said I believe we will have to have it or something close (related issue: from time to time you just want the id of the entity and not the entity, maybe we would need some kind of mapper). |
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.
-
i.e. if I'm expecting to have a field that's
Record<string, SomeOtherEntity>on one of my entities, then am I forced to generate an array of[string, SomeOtherEntity]instead and then do a post-processing step in.map(...)to convert to something likeRecord<string, SomeOtherEntity>?Beta Was this translation helpful? Give feedback.
All reactions