removeMember

@Modifying(clearAutomatically = true)
@Query(value = ""DELETE FROM " + MEMBERS_KEY + " WHERE " + OWNER_KEY + "=:" + OWNER_KEY + " AND " + TEAM_IDENTIFIER_KEY + "=:" + TEAM_IDENTIFIER_KEY", nativeQuery = true)
abstract fun removeMember(@Param(value = "owner") member: String, @Param(value = "team_id") teamId: String)

Method to execute the query to remove a member from a team

Parameters

teamId

: the identifier of the team

member

: the member to remove