Skip to content

Commit

Permalink
Merge pull request #1006 from apollographql/update/cli
Browse files Browse the repository at this point in the history
Bump CLI to 2.21.3
  • Loading branch information
designatednerd authored Feb 7, 2020
2 parents b8635e2 + 97e0bbc commit 60bb74d
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 225 deletions.
26 changes: 14 additions & 12 deletions Tests/GitHubAPI/API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import Foundation

public final class RepositoryQuery: GraphQLQuery {
/// The raw GraphQL definition of this operation.
public let operationDefinition =
public let operationDefinition: String =
"query Repository { repository(owner: \"apollographql\", name: \"apollo-ios\") { __typename issueOrPullRequest(number: 13) { __typename ... on Issue { body ... on UniformResourceLocatable { url } author { __typename avatarUrl } } ... on Reactable { viewerCanReact ... on Comment { author { __typename login } } } } } }"

public let operationName = "Repository"
public let operationName: String = "Repository"

public let operationIdentifier: String? = "63e25c339275a65f43b847e692e42caed8c06e25fbfb3dc8db6d4897b180c9ef"

public init() {
}

public struct Data: GraphQLSelectionSet {
public static let possibleTypes = ["Query"]
public static let possibleTypes: [String] = ["Query"]

public static let selections: [GraphQLSelection] = [
GraphQLField("repository", arguments: ["owner": "apollographql", "name": "apollo-ios"], type: .object(Repository.selections)),
Expand All @@ -43,7 +43,7 @@ public final class RepositoryQuery: GraphQLQuery {
}

public struct Repository: GraphQLSelectionSet {
public static let possibleTypes = ["Repository"]
public static let possibleTypes: [String] = ["Repository"]

public static let selections: [GraphQLSelection] = [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
Expand Down Expand Up @@ -80,7 +80,7 @@ public final class RepositoryQuery: GraphQLQuery {
}

public struct IssueOrPullRequest: GraphQLSelectionSet {
public static let possibleTypes = ["Issue", "PullRequest"]
public static let possibleTypes: [String] = ["Issue", "PullRequest"]

public static let selections: [GraphQLSelection] = [
GraphQLTypeCase(
Expand Down Expand Up @@ -137,7 +137,7 @@ public final class RepositoryQuery: GraphQLQuery {
}

public struct Author: GraphQLSelectionSet {
public static let possibleTypes = ["Organization", "User", "Bot"]
public static let possibleTypes: [String] = ["Organization", "User", "Bot"]

public static let selections: [GraphQLSelection] = [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
Expand Down Expand Up @@ -194,7 +194,7 @@ public final class RepositoryQuery: GraphQLQuery {
}

public struct AsIssue: GraphQLSelectionSet {
public static let possibleTypes = ["Issue"]
public static let possibleTypes: [String] = ["Issue"]

public static let selections: [GraphQLSelection] = [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
Expand Down Expand Up @@ -265,7 +265,7 @@ public final class RepositoryQuery: GraphQLQuery {
}

public struct Author: GraphQLSelectionSet {
public static let possibleTypes = ["Organization", "User", "Bot"]
public static let possibleTypes: [String] = ["Organization", "User", "Bot"]

public static let selections: [GraphQLSelection] = [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
Expand Down Expand Up @@ -329,16 +329,18 @@ public final class RepositoryQuery: GraphQLQuery {

public final class RepoUrlQuery: GraphQLQuery {
/// The raw GraphQL definition of this operation.
public let operationDefinition =
public let operationDefinition: String =
"query RepoURL { repository(owner: \"apollographql\", name: \"apollo-ios\") { __typename url } }"

public let operationName = "RepoURL"
public let operationName: String = "RepoURL"

public let operationIdentifier: String? = "b55f22bcbfaea0d861089b3fbe06299675a21d11ba7138ace39ecbde606a3dc1"

public init() {
}

public struct Data: GraphQLSelectionSet {
public static let possibleTypes = ["Query"]
public static let possibleTypes: [String] = ["Query"]

public static let selections: [GraphQLSelection] = [
GraphQLField("repository", arguments: ["owner": "apollographql", "name": "apollo-ios"], type: .object(Repository.selections)),
Expand All @@ -365,7 +367,7 @@ public final class RepoUrlQuery: GraphQLQuery {
}

public struct Repository: GraphQLSelectionSet {
public static let possibleTypes = ["Repository"]
public static let possibleTypes: [String] = ["Repository"]

public static let selections: [GraphQLSelection] = [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
Expand Down
4 changes: 4 additions & 0 deletions Tests/GitHubAPI/operationIdsPath.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"63e25c339275a65f43b847e692e42caed8c06e25fbfb3dc8db6d4897b180c9ef": {
"name": "Repository",
"source": "query Repository {\n repository(owner: \"apollographql\", name: \"apollo-ios\") {\n __typename\n issueOrPullRequest(number: 13) {\n __typename\n ... on Issue {\n body\n ... on UniformResourceLocatable {\n url\n }\n author {\n __typename\n avatarUrl\n }\n }\n ... on Reactable {\n viewerCanReact\n ... on Comment {\n author {\n __typename\n login\n }\n }\n }\n }\n }\n}"
},
"b55f22bcbfaea0d861089b3fbe06299675a21d11ba7138ace39ecbde606a3dc1": {
"name": "RepoURL",
"source": "query RepoURL {\n repository(owner: \"apollographql\", name: \"apollo-ios\") {\n __typename\n url\n }\n}"
}
}
Loading

0 comments on commit 60bb74d

Please sign in to comment.