@@ -5,7 +5,7 @@ import AWSAppSync
5
5
public struct CreatePostWithFileInput : GraphQLMapConvertible {
6
6
public var graphQLMap : GraphQLMap
7
7
8
- public init ( author: String , title: String , content: String , url: Optional < String ? > = nil , ups: Optional < Int ? > = nil , downs: Optional < Int ? > = nil , file: S3ObjectInput ) {
8
+ public init ( author: String , title: String , content: String , url: String ? = nil , ups: Int ? = nil , downs: Int ? = nil , file: S3ObjectInput ) {
9
9
graphQLMap = [ " author " : author, " title " : title, " content " : content, " url " : url, " ups " : ups, " downs " : downs, " file " : file]
10
10
}
11
11
@@ -36,27 +36,27 @@ public struct CreatePostWithFileInput: GraphQLMapConvertible {
36
36
}
37
37
}
38
38
39
- public var url : Optional < String ? > {
39
+ public var url : String ? {
40
40
get {
41
- return graphQLMap [ " url " ] as! Optional < String ? >
41
+ return graphQLMap [ " url " ] as! String ?
42
42
}
43
43
set {
44
44
graphQLMap. updateValue ( newValue, forKey: " url " )
45
45
}
46
46
}
47
47
48
- public var ups : Optional < Int ? > {
48
+ public var ups : Int ? {
49
49
get {
50
- return graphQLMap [ " ups " ] as! Optional < Int ? >
50
+ return graphQLMap [ " ups " ] as! Int ?
51
51
}
52
52
set {
53
53
graphQLMap. updateValue ( newValue, forKey: " ups " )
54
54
}
55
55
}
56
56
57
- public var downs : Optional < Int ? > {
57
+ public var downs : Int ? {
58
58
get {
59
- return graphQLMap [ " downs " ] as! Optional < Int ? >
59
+ return graphQLMap [ " downs " ] as! Int ?
60
60
}
61
61
set {
62
62
graphQLMap. updateValue ( newValue, forKey: " downs " )
@@ -158,7 +158,7 @@ public enum DeltaAction: RawRepresentable, Equatable, JSONDecodable, JSONEncodab
158
158
public struct CreatePostWithoutFileInput : GraphQLMapConvertible {
159
159
public var graphQLMap : GraphQLMap
160
160
161
- public init ( author: String , title: String , content: String , url: Optional < String ? > = nil , ups: Optional < Int ? > = nil , downs: Optional < Int ? > = nil ) {
161
+ public init ( author: String , title: String , content: String , url: String ? = nil , ups: Int ? = nil , downs: Int ? = nil ) {
162
162
graphQLMap = [ " author " : author, " title " : title, " content " : content, " url " : url, " ups " : ups, " downs " : downs]
163
163
}
164
164
@@ -189,27 +189,27 @@ public struct CreatePostWithoutFileInput: GraphQLMapConvertible {
189
189
}
190
190
}
191
191
192
- public var url : Optional < String ? > {
192
+ public var url : String ? {
193
193
get {
194
- return graphQLMap [ " url " ] as! Optional < String ? >
194
+ return graphQLMap [ " url " ] as! String ?
195
195
}
196
196
set {
197
197
graphQLMap. updateValue ( newValue, forKey: " url " )
198
198
}
199
199
}
200
200
201
- public var ups : Optional < Int ? > {
201
+ public var ups : Int ? {
202
202
get {
203
- return graphQLMap [ " ups " ] as! Optional < Int ? >
203
+ return graphQLMap [ " ups " ] as! Int ?
204
204
}
205
205
set {
206
206
graphQLMap. updateValue ( newValue, forKey: " ups " )
207
207
}
208
208
}
209
209
210
- public var downs : Optional < Int ? > {
210
+ public var downs : Int ? {
211
211
get {
212
- return graphQLMap [ " downs " ] as! Optional < Int ? >
212
+ return graphQLMap [ " downs " ] as! Int ?
213
213
}
214
214
set {
215
215
graphQLMap. updateValue ( newValue, forKey: " downs " )
@@ -220,7 +220,7 @@ public struct CreatePostWithoutFileInput: GraphQLMapConvertible {
220
220
public struct UpdatePostWithFileInput : GraphQLMapConvertible {
221
221
public var graphQLMap : GraphQLMap
222
222
223
- public init ( id: GraphQLID , author: Optional < String ? > = nil , title: Optional < String ? > = nil , content: Optional < String ? > = nil , url: Optional < String ? > = nil , ups: Optional < Int ? > = nil , downs: Optional < Int ? > = nil , file: S3ObjectInput ) {
223
+ public init ( id: GraphQLID , author: String ? = nil , title: String ? = nil , content: String ? = nil , url: String ? = nil , ups: Int ? = nil , downs: Int ? = nil , file: S3ObjectInput ) {
224
224
graphQLMap = [ " id " : id, " author " : author, " title " : title, " content " : content, " url " : url, " ups " : ups, " downs " : downs, " file " : file]
225
225
}
226
226
@@ -233,54 +233,54 @@ public struct UpdatePostWithFileInput: GraphQLMapConvertible {
233
233
}
234
234
}
235
235
236
- public var author : Optional < String ? > {
236
+ public var author : String ? {
237
237
get {
238
- return graphQLMap [ " author " ] as! Optional < String ? >
238
+ return graphQLMap [ " author " ] as! String ?
239
239
}
240
240
set {
241
241
graphQLMap. updateValue ( newValue, forKey: " author " )
242
242
}
243
243
}
244
244
245
- public var title : Optional < String ? > {
245
+ public var title : String ? {
246
246
get {
247
- return graphQLMap [ " title " ] as! Optional < String ? >
247
+ return graphQLMap [ " title " ] as! String ?
248
248
}
249
249
set {
250
250
graphQLMap. updateValue ( newValue, forKey: " title " )
251
251
}
252
252
}
253
253
254
- public var content : Optional < String ? > {
254
+ public var content : String ? {
255
255
get {
256
- return graphQLMap [ " content " ] as! Optional < String ? >
256
+ return graphQLMap [ " content " ] as! String ?
257
257
}
258
258
set {
259
259
graphQLMap. updateValue ( newValue, forKey: " content " )
260
260
}
261
261
}
262
262
263
- public var url : Optional < String ? > {
263
+ public var url : String ? {
264
264
get {
265
- return graphQLMap [ " url " ] as! Optional < String ? >
265
+ return graphQLMap [ " url " ] as! String ?
266
266
}
267
267
set {
268
268
graphQLMap. updateValue ( newValue, forKey: " url " )
269
269
}
270
270
}
271
271
272
- public var ups : Optional < Int ? > {
272
+ public var ups : Int ? {
273
273
get {
274
- return graphQLMap [ " ups " ] as! Optional < Int ? >
274
+ return graphQLMap [ " ups " ] as! Int ?
275
275
}
276
276
set {
277
277
graphQLMap. updateValue ( newValue, forKey: " ups " )
278
278
}
279
279
}
280
280
281
- public var downs : Optional < Int ? > {
281
+ public var downs : Int ? {
282
282
get {
283
- return graphQLMap [ " downs " ] as! Optional < Int ? >
283
+ return graphQLMap [ " downs " ] as! Int ?
284
284
}
285
285
set {
286
286
graphQLMap. updateValue ( newValue, forKey: " downs " )
@@ -300,7 +300,7 @@ public struct UpdatePostWithFileInput: GraphQLMapConvertible {
300
300
public struct UpdatePostWithoutFileInput : GraphQLMapConvertible {
301
301
public var graphQLMap : GraphQLMap
302
302
303
- public init ( id: GraphQLID , author: Optional < String ? > = nil , title: Optional < String ? > = nil , content: Optional < String ? > = nil , url: Optional < String ? > = nil , ups: Optional < Int ? > = nil , downs: Optional < Int ? > = nil ) {
303
+ public init ( id: GraphQLID , author: String ? = nil , title: String ? = nil , content: String ? = nil , url: String ? = nil , ups: Int ? = nil , downs: Int ? = nil ) {
304
304
graphQLMap = [ " id " : id, " author " : author, " title " : title, " content " : content, " url " : url, " ups " : ups, " downs " : downs]
305
305
}
306
306
@@ -313,54 +313,54 @@ public struct UpdatePostWithoutFileInput: GraphQLMapConvertible {
313
313
}
314
314
}
315
315
316
- public var author : Optional < String ? > {
316
+ public var author : String ? {
317
317
get {
318
- return graphQLMap [ " author " ] as! Optional < String ? >
318
+ return graphQLMap [ " author " ] as! String ?
319
319
}
320
320
set {
321
321
graphQLMap. updateValue ( newValue, forKey: " author " )
322
322
}
323
323
}
324
324
325
- public var title : Optional < String ? > {
325
+ public var title : String ? {
326
326
get {
327
- return graphQLMap [ " title " ] as! Optional < String ? >
327
+ return graphQLMap [ " title " ] as! String ?
328
328
}
329
329
set {
330
330
graphQLMap. updateValue ( newValue, forKey: " title " )
331
331
}
332
332
}
333
333
334
- public var content : Optional < String ? > {
334
+ public var content : String ? {
335
335
get {
336
- return graphQLMap [ " content " ] as! Optional < String ? >
336
+ return graphQLMap [ " content " ] as! String ?
337
337
}
338
338
set {
339
339
graphQLMap. updateValue ( newValue, forKey: " content " )
340
340
}
341
341
}
342
342
343
- public var url : Optional < String ? > {
343
+ public var url : String ? {
344
344
get {
345
- return graphQLMap [ " url " ] as! Optional < String ? >
345
+ return graphQLMap [ " url " ] as! String ?
346
346
}
347
347
set {
348
348
graphQLMap. updateValue ( newValue, forKey: " url " )
349
349
}
350
350
}
351
351
352
- public var ups : Optional < Int ? > {
352
+ public var ups : Int ? {
353
353
get {
354
- return graphQLMap [ " ups " ] as! Optional < Int ? >
354
+ return graphQLMap [ " ups " ] as! Int ?
355
355
}
356
356
set {
357
357
graphQLMap. updateValue ( newValue, forKey: " ups " )
358
358
}
359
359
}
360
360
361
- public var downs : Optional < Int ? > {
361
+ public var downs : Int ? {
362
362
get {
363
- return graphQLMap [ " downs " ] as! Optional < Int ? >
363
+ return graphQLMap [ " downs " ] as! Int ?
364
364
}
365
365
set {
366
366
graphQLMap. updateValue ( newValue, forKey: " downs " )
@@ -3145,6 +3145,41 @@ public final class DeletePostUsingParametersMutation: GraphQLMutation {
3145
3145
}
3146
3146
}
3147
3147
3148
+ public final class TestMutationWithoutParametersMutation : GraphQLMutation {
3149
+ public static let operationString =
3150
+ " mutation TestMutationWithoutParameters { \n testMutationWithoutParameters \n } "
3151
+
3152
+ public init ( ) {
3153
+ }
3154
+
3155
+ public struct Data : GraphQLSelectionSet {
3156
+ public static let possibleTypes = [ " Mutation " ]
3157
+
3158
+ public static let selections : [ GraphQLSelection ] = [
3159
+ GraphQLField ( " testMutationWithoutParameters " , type: . scalar( Bool . self) ) ,
3160
+ ]
3161
+
3162
+ public var snapshot : Snapshot
3163
+
3164
+ public init ( snapshot: Snapshot ) {
3165
+ self . snapshot = snapshot
3166
+ }
3167
+
3168
+ public init ( testMutationWithoutParameters: Bool ? = nil ) {
3169
+ self . init ( snapshot: [ " __typename " : " Mutation " , " testMutationWithoutParameters " : testMutationWithoutParameters] )
3170
+ }
3171
+
3172
+ public var testMutationWithoutParameters : Bool ? {
3173
+ get {
3174
+ return snapshot [ " testMutationWithoutParameters " ] as? Bool
3175
+ }
3176
+ set {
3177
+ snapshot. updateValue ( newValue, forKey: " testMutationWithoutParameters " )
3178
+ }
3179
+ }
3180
+ }
3181
+ }
3182
+
3148
3183
public final class GetPostQuery : GraphQLQuery {
3149
3184
public static let operationString =
3150
3185
" query GetPost($id: ID!) { \n getPost(id: $id) { \n __typename \n id \n author \n title \n content \n url \n ups \n downs \n file { \n __typename \n bucket \n key \n region \n } \n createdDate \n aws_ds \n } \n } "
0 commit comments