full-stack-fastapi-template
full-stack-fastapi-template copied to clipboard
Return items in user calls
This shows an example of how to leverage relationships already created in the sqlalchemy models to return a user's items in responses that return User.
Seems convenient but could easily become unwieldy as a user's collection of items grows into the thousands. At that point it might make more sense to continue using the paginated Items endpoint.
Thank you! This was recently heavily refactored, I plan on something similar but that will be in future updates. Given that, I'll pass on this one, but thanks for the interest! :coffee: