full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Return items in user calls

Open Nonameentered opened this issue 5 years ago • 1 comments

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.

Nonameentered avatar May 11 '20 21:05 Nonameentered

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.

TheCDC avatar Jan 21 '21 00:01 TheCDC

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:

tiangolo avatar Mar 12 '24 13:03 tiangolo