You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be like this:
crud_user = CRUDUser(User)
Also I think better way would be like this, because it makes open for extendibility (eg. write or overwrite specific queries, the features of repository pattern):
from app.models.users import User
from app.schemas.user import UserInDB, UserUpdateDB
class CRUDUser(CRUDBase[User, UserInDB, UserUpdateDB]):
pass
crud_user = CRUDUser(User)
The text was updated successfully, but these errors were encountered:
fastapi-microservices/users/app/crud/users.py
Line 6 in cee0a7d
It should be like this:
crud_user = CRUDUser(User)
Also I think better way would be like this, because it makes open for extendibility (eg. write or overwrite specific queries, the features of repository pattern):
The text was updated successfully, but these errors were encountered: