async def update(
        self,
        db: AsyncSession,
        db_obj: ModelType,
        obj_in: UpdateSchemaType,
        uow: Optional[UnitOfWork] = None,
    ) -> ModelType:
        """Update an existing object in db for a given schema type and organization context.

        Args:
        ----
            db (AsyncSession): The database session.
            db_obj (ModelType): The object to update.
            obj_in (UpdateSchemaType): The object to update with.
            organization_id (UUID): The UUID of the organization.
            uow (Optional[UnitOfWork]): The unit of work to use for the transaction.

        Returns:
        -------
            ModelType: The updated object.

        """
        obj_in = obj_in.model_dump(exclude_unset=True)

        for key, value in obj_in.items():
            setattr(db_obj, key, value) if hasattr(db_obj, key) else None

        db.add(db_obj)
        if not uow:
            await db.commit()
            await db.refresh(db_obj)
        return db_obj
Update an existing object in db for a given schema type and organization context.

        Args:
        ----
            db (AsyncSession): The database session.
            db_obj (ModelType): The object to update.
            obj_in (UpdateSchemaType): The object to update with.
            organization_id (UUID): The UUID of the organization.
            uow (Optional[UnitOfWork]): The unit of work to use for the transaction.

        Returns:
        -------
            ModelType: The updated object.

        
backend/airweave/crud/_base_organization.py