diff --git a/fastcrud/crud/fast_crud.py b/fastcrud/crud/fast_crud.py index ded2d4a..d4060c5 100644 --- a/fastcrud/crud/fast_crud.py +++ b/fastcrud/crud/fast_crud.py @@ -511,6 +511,7 @@ async def upsert( return_as_model: bool = False, ) -> Union[BaseModel, Dict[str, Any], None]: """Update the instance or create it if it doesn't exists. + Note: This method will perform two transactions to the database (get and create or update). Args: db (AsyncSession): The database session to use for the operation.