Closed matv864 closed 1 month ago
in Usual SQL I would use this selectinload
but how can I make this in FastCRUD
I think what you are looking for is the get_joined method.
Here's a comprehensive guide to joins in FastCRUD
, including nested joins
I try to create api on sqlmodel with relationships (In my case, I have table Card and Article with link to Card (key: card_id)) one-to-many
And now I try to understand how it works (joined isn't my solving, I need record which contain Card model with list of Article models inside)![image](https://github.com/igorbenav/fastcrud/assets/91239322/28997837-aa82-43b2-aeea-e054894fb208)
code of getting record
result of this response![image](https://github.com/igorbenav/fastcrud/assets/91239322/c233221b-066a-4ed1-8a9b-c0ccaededc31)
Why "true" ....? How did it appeared ....?
how can I implement this?