|
| 1 | +// @generated |
| 2 | +// This file was automatically generated and should not be edited. |
| 3 | + |
| 4 | +@_exported import ApolloAPI |
| 5 | + |
| 6 | +public class UpdateTodoMutation: GraphQLMutation { |
| 7 | + public static let operationName: String = "UpdateTodo" |
| 8 | + public static let operationDocument: ApolloAPI.OperationDocument = .init( |
| 9 | + definition: .init( |
| 10 | + #"mutation UpdateTodo($updateTodoInput: UpdateTodoInput!) { updateTodo(input: $updateTodoInput) { __typename id updatedAt createdAt content owner } }"# |
| 11 | + )) |
| 12 | + |
| 13 | + public var updateTodoInput: UpdateTodoInput |
| 14 | + |
| 15 | + public init(updateTodoInput: UpdateTodoInput) { |
| 16 | + self.updateTodoInput = updateTodoInput |
| 17 | + } |
| 18 | + |
| 19 | + public var __variables: Variables? { ["updateTodoInput": updateTodoInput] } |
| 20 | + |
| 21 | + public struct Data: AppSyncAPI.SelectionSet { |
| 22 | + public let __data: DataDict |
| 23 | + public init(_dataDict: DataDict) { __data = _dataDict } |
| 24 | + |
| 25 | + public static var __parentType: any ApolloAPI.ParentType { AppSyncAPI.Objects.Mutation } |
| 26 | + public static var __selections: [ApolloAPI.Selection] { [ |
| 27 | + .field("updateTodo", UpdateTodo?.self, arguments: ["input": .variable("updateTodoInput")]), |
| 28 | + ] } |
| 29 | + |
| 30 | + public var updateTodo: UpdateTodo? { __data["updateTodo"] } |
| 31 | + |
| 32 | + /// UpdateTodo |
| 33 | + /// |
| 34 | + /// Parent Type: `Todo` |
| 35 | + public struct UpdateTodo: AppSyncAPI.SelectionSet { |
| 36 | + public let __data: DataDict |
| 37 | + public init(_dataDict: DataDict) { __data = _dataDict } |
| 38 | + |
| 39 | + public static var __parentType: any ApolloAPI.ParentType { AppSyncAPI.Objects.Todo } |
| 40 | + public static var __selections: [ApolloAPI.Selection] { [ |
| 41 | + .field("__typename", String.self), |
| 42 | + .field("id", AppSyncAPI.ID.self), |
| 43 | + .field("updatedAt", AppSyncAPI.AWSDateTime.self), |
| 44 | + .field("createdAt", AppSyncAPI.AWSDateTime.self), |
| 45 | + .field("content", String?.self), |
| 46 | + .field("owner", String?.self), |
| 47 | + ] } |
| 48 | + |
| 49 | + public var id: AppSyncAPI.ID { __data["id"] } |
| 50 | + public var updatedAt: AppSyncAPI.AWSDateTime { __data["updatedAt"] } |
| 51 | + public var createdAt: AppSyncAPI.AWSDateTime { __data["createdAt"] } |
| 52 | + public var content: String? { __data["content"] } |
| 53 | + public var owner: String? { __data["owner"] } |
| 54 | + } |
| 55 | + } |
| 56 | +} |
0 commit comments