-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
151 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...tegrationTestApp/AppSyncAPI/Sources/Operations/Mutations/UpdateTodoMutation.graphql.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// @generated | ||
// This file was automatically generated and should not be edited. | ||
|
||
@_exported import ApolloAPI | ||
|
||
public class UpdateTodoMutation: GraphQLMutation { | ||
public static let operationName: String = "UpdateTodo" | ||
public static let operationDocument: ApolloAPI.OperationDocument = .init( | ||
definition: .init( | ||
#"mutation UpdateTodo($updateTodoInput: UpdateTodoInput!) { updateTodo(input: $updateTodoInput) { __typename id updatedAt createdAt content owner } }"# | ||
)) | ||
|
||
public var updateTodoInput: UpdateTodoInput | ||
|
||
public init(updateTodoInput: UpdateTodoInput) { | ||
self.updateTodoInput = updateTodoInput | ||
} | ||
|
||
public var __variables: Variables? { ["updateTodoInput": updateTodoInput] } | ||
|
||
public struct Data: AppSyncAPI.SelectionSet { | ||
public let __data: DataDict | ||
public init(_dataDict: DataDict) { __data = _dataDict } | ||
|
||
public static var __parentType: any ApolloAPI.ParentType { AppSyncAPI.Objects.Mutation } | ||
public static var __selections: [ApolloAPI.Selection] { [ | ||
.field("updateTodo", UpdateTodo?.self, arguments: ["input": .variable("updateTodoInput")]), | ||
] } | ||
|
||
public var updateTodo: UpdateTodo? { __data["updateTodo"] } | ||
|
||
/// UpdateTodo | ||
/// | ||
/// Parent Type: `Todo` | ||
public struct UpdateTodo: AppSyncAPI.SelectionSet { | ||
public let __data: DataDict | ||
public init(_dataDict: DataDict) { __data = _dataDict } | ||
|
||
public static var __parentType: any ApolloAPI.ParentType { AppSyncAPI.Objects.Todo } | ||
public static var __selections: [ApolloAPI.Selection] { [ | ||
.field("__typename", String.self), | ||
.field("id", AppSyncAPI.ID.self), | ||
.field("updatedAt", AppSyncAPI.AWSDateTime.self), | ||
.field("createdAt", AppSyncAPI.AWSDateTime.self), | ||
.field("content", String?.self), | ||
.field("owner", String?.self), | ||
] } | ||
|
||
public var id: AppSyncAPI.ID { __data["id"] } | ||
public var updatedAt: AppSyncAPI.AWSDateTime { __data["updatedAt"] } | ||
public var createdAt: AppSyncAPI.AWSDateTime { __data["createdAt"] } | ||
public var content: String? { __data["content"] } | ||
public var owner: String? { __data["owner"] } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 4 additions & 8 deletions
12
...s/IntegrationTestApp/AppSyncAPI/Sources/Schema/InputObjects/CreateTodoInput.graphql.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...s/IntegrationTestApp/AppSyncAPI/Sources/Schema/InputObjects/UpdateTodoInput.graphql.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// @generated | ||
// This file was automatically generated and should not be edited. | ||
|
||
import ApolloAPI | ||
|
||
public struct UpdateTodoInput: InputObject { | ||
public private(set) var __data: InputDict | ||
|
||
public init(_ data: InputDict) { | ||
__data = data | ||
} | ||
|
||
public init( | ||
content: GraphQLNullable<String> = nil, | ||
id: ID | ||
) { | ||
__data = InputDict([ | ||
"content": content, | ||
"id": id | ||
]) | ||
} | ||
|
||
public var content: GraphQLNullable<String> { | ||
get { __data["content"] } | ||
set { __data["content"] = newValue } | ||
} | ||
|
||
public var id: ID { | ||
get { __data["id"] } | ||
set { __data["id"] = newValue } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
Tests/IntegrationTestApp/AppSyncAPI/Sources/Schema/SchemaMetadata.graphql.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
mutation UpdateTodo($updateTodoInput: UpdateTodoInput!) { | ||
updateTodo(input: $updateTodoInput) { | ||
id | ||
updatedAt | ||
createdAt | ||
content | ||
owner | ||
} | ||
} |