Skip to content

Commit a14ae28

Browse files
committed
Fix Path
1 parent b870a4b commit a14ae28

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

GitHub-GraphQL-API-Example-iOS/RepositoriesViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class RepositoriesViewController: UITableViewController {
3434
guard let repository = edge?.node?.asRepository?.fragments.repositoryDetails else { return }
3535
print("Name: \(repository.name)")
3636
print("Path: \(repository.url)")
37-
print("Owner: \(repository.owner.path)")
37+
print("Owner: \(repository.owner.resourcePath)")
3838
print("Stars: \(repository.stargazers.totalCount)")
3939
print("\n")
4040
}

GitHub-GraphQL-API-Example-iOS/RepositoryCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ final class RepositoryCell: UITableViewCell {
1010
}
1111

1212
func configure(with repository: RepositoryDetails) {
13-
nameLabel.text = "\(repository.owner.path)/\(repository.name)"
13+
nameLabel.text = "\(repository.owner.resourcePath)/\(repository.name)"
1414
urlLabel.text = repository.url
1515
stargazersCountLabel.text = "Stars: \(repository.stargazers.totalCount)"
1616
}

GitHub-GraphQL-API-Example-iOS/RepositoryDetails.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fragment RepositoryDetails on Repository {
22
name
33
owner {
4-
path
4+
resourcePath
55
}
66
stargazers {
77
totalCount

0 commit comments

Comments
 (0)