You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given this basic model structure I want to fetch List[Project] such that it has members populated with User objects, and even better if they can be flattened such that members: list[CustomUser] where CustomUser._fields = dict(**ProjectMember._fields, **User._fields)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
Given this basic model structure I want to fetch
List[Project]
such that it hasmembers
populated withUser
objects, and even better if they can be flattened such thatmembers: list[CustomUser]
whereCustomUser._fields = dict(**ProjectMember._fields, **User._fields)
get_projects
Operating System
Linux, macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
Python 3.11.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions