r/FastAPI • u/00001sam10000 • Jan 08 '25
Question What's the benefit of sqlmodel in fastapi?
I think using sqlalchamy is enough so why using sqlmodel especially when it adds another extra layer; what's the benefti?
16
Upvotes
View all comments
Show parent comment
0
u/plscallmebyname Jan 09 '25
You can create a response model which does not contain all fields of Users table. There are ample documentation of such examples and would encourage you to take a look.