backend2/src/api/api_v1/endpoints/user_subscription.py
def unsubscribe_user_me(
    *,
    user: models.User = Depends(deps.get_current_active_user),
    db: Session = Depends(deps.get_db),
    mutation: str
) -> Any:
    """
    Delete a subscription from the subscriptions
    """
    db.query(models.Subscription.mutation).filter(models.Subscription.user_id == user.id,
                                                  models.Subscription.mutation == mutation).delete()
    db.commit()
    return mutation

    Delete a subscription from the subscriptions
    
Delete a subscription from the subscriptions
Delete a subscription from the subscriptions
def unsubscribe_user_me(
    *,
    user: models.User = Depends(deps.get_current_active_user),
    db: Session = Depends(deps.get_db),
    mutation: str
) -> Any:
    db.query(models.Subscription.mutation).filter(models.Subscription.user_id == user.id,
                                                  models.Subscription.mutation == mutation).delete()
    db.commit()
    return mutation
def unsubscribe_user_me ( * , user : models . User = Depends ( deps . get_current_active_user ) , db : Session = Depends ( deps . get_db ) , mutation : str ) -> Any : db . query ( models . Subscription . mutation ) . filter ( models . Subscription . user_id == user . id , models . Subscription . mutation == mutation ) . delete ( ) db . commit ( ) return mutation
Delete a subscription from the subscriptions
Delete a subscription from the subscriptions
"""
    Delete a subscription from the subscriptions
    """
user
models.User
db
Session
mutation
str