Reference to other models to get data in many-to-many relationships #591
Unanswered
dongsupkim-onepredict
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I'd like to return UserReadWithRoles response model that includes user and role data in many to many relationships using link_model as you can see
It doesn't show up any error when run python script but when I try to access openapi docs it make error as below:
But only thing that I can reference is this page reference
It only shows one-to-many relationships case. Is there any reference or any code?
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.9.16
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions