-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
stub.go
537 lines (498 loc) · 23.8 KB
/
stub.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package followschema
import (
"context"
introspection1 "github.com/99designs/gqlgen/codegen/testserver/followschema/introspection"
invalid_packagename "github.com/99designs/gqlgen/codegen/testserver/followschema/invalid-packagename"
"github.com/99designs/gqlgen/codegen/testserver/followschema/otherpkg"
)
type Stub struct {
BackedByInterfaceResolver struct {
ID func(ctx context.Context, obj BackedByInterface) (string, error)
}
ErrorsResolver struct {
A func(ctx context.Context, obj *Errors) (*Error, error)
B func(ctx context.Context, obj *Errors) (*Error, error)
C func(ctx context.Context, obj *Errors) (*Error, error)
D func(ctx context.Context, obj *Errors) (*Error, error)
E func(ctx context.Context, obj *Errors) (*Error, error)
}
ForcedResolverResolver struct {
Field func(ctx context.Context, obj *ForcedResolver) (*Circle, error)
}
ModelMethodsResolver struct {
ResolverField func(ctx context.Context, obj *ModelMethods) (bool, error)
}
MutationResolver struct {
DefaultInput func(ctx context.Context, input DefaultInput) (*DefaultParametersMirror, error)
OverrideValueViaInput func(ctx context.Context, input FieldsOrderInput) (*FieldsOrderPayload, error)
UpdateSomething func(ctx context.Context, input SpecialInput) (string, error)
UpdatePtrToPtr func(ctx context.Context, input UpdatePtrToPtrOuter) (*PtrToPtrOuter, error)
}
OverlappingFieldsResolver struct {
OldFoo func(ctx context.Context, obj *OverlappingFields) (int, error)
}
PanicsResolver struct {
FieldScalarMarshal func(ctx context.Context, obj *Panics) ([]MarshalPanic, error)
ArgUnmarshal func(ctx context.Context, obj *Panics, u []MarshalPanic) (bool, error)
}
PetResolver struct {
Friends func(ctx context.Context, obj *Pet, limit *int) ([]*Pet, error)
}
PrimitiveResolver struct {
Value func(ctx context.Context, obj *Primitive) (int, error)
}
PrimitiveStringResolver struct {
Value func(ctx context.Context, obj *PrimitiveString) (string, error)
Len func(ctx context.Context, obj *PrimitiveString) (int, error)
}
QueryResolver struct {
InvalidIdentifier func(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error)
Collision func(ctx context.Context) (*introspection1.It, error)
MapInput func(ctx context.Context, input map[string]interface{}) (*bool, error)
Recursive func(ctx context.Context, input *RecursiveInputSlice) (*bool, error)
NestedInputs func(ctx context.Context, input [][]*OuterInput) (*bool, error)
NestedOutputs func(ctx context.Context) ([][]*OuterObject, error)
ModelMethods func(ctx context.Context) (*ModelMethods, error)
User func(ctx context.Context, id int) (*User, error)
NullableArg func(ctx context.Context, arg *int) (*string, error)
InputSlice func(ctx context.Context, arg []string) (bool, error)
InputNullableSlice func(ctx context.Context, arg []string) (bool, error)
ShapeUnion func(ctx context.Context) (ShapeUnion, error)
Autobind func(ctx context.Context) (*Autobind, error)
DeprecatedField func(ctx context.Context) (string, error)
Overlapping func(ctx context.Context) (*OverlappingFields, error)
DefaultParameters func(ctx context.Context, falsyBoolean *bool, truthyBoolean *bool) (*DefaultParametersMirror, error)
DirectiveArg func(ctx context.Context, arg string) (*string, error)
DirectiveNullableArg func(ctx context.Context, arg *int, arg2 *int, arg3 *string) (*string, error)
DirectiveInputNullable func(ctx context.Context, arg *InputDirectives) (*string, error)
DirectiveInput func(ctx context.Context, arg InputDirectives) (*string, error)
DirectiveInputType func(ctx context.Context, arg InnerInput) (*string, error)
DirectiveObject func(ctx context.Context) (*ObjectDirectives, error)
DirectiveObjectWithCustomGoModel func(ctx context.Context) (*ObjectDirectivesWithCustomGoModel, error)
DirectiveFieldDef func(ctx context.Context, ret string) (string, error)
DirectiveField func(ctx context.Context) (*string, error)
DirectiveDouble func(ctx context.Context) (*string, error)
DirectiveUnimplemented func(ctx context.Context) (*string, error)
EmbeddedCase1 func(ctx context.Context) (*EmbeddedCase1, error)
EmbeddedCase2 func(ctx context.Context) (*EmbeddedCase2, error)
EmbeddedCase3 func(ctx context.Context) (*EmbeddedCase3, error)
EnumInInput func(ctx context.Context, input *InputWithEnumValue) (EnumTest, error)
Shapes func(ctx context.Context) ([]Shape, error)
NoShape func(ctx context.Context) (Shape, error)
Node func(ctx context.Context) (Node, error)
NoShapeTypedNil func(ctx context.Context) (Shape, error)
Animal func(ctx context.Context) (Animal, error)
NotAnInterface func(ctx context.Context) (BackedByInterface, error)
Dog func(ctx context.Context) (*Dog, error)
Issue896a func(ctx context.Context) ([]*CheckIssue896, error)
MapStringInterface func(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error)
MapNestedStringInterface func(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error)
ErrorBubble func(ctx context.Context) (*Error, error)
ErrorBubbleList func(ctx context.Context) ([]*Error, error)
ErrorList func(ctx context.Context) ([]*Error, error)
Errors func(ctx context.Context) (*Errors, error)
Valid func(ctx context.Context) (string, error)
Panics func(ctx context.Context) (*Panics, error)
PrimitiveObject func(ctx context.Context) ([]Primitive, error)
PrimitiveStringObject func(ctx context.Context) ([]PrimitiveString, error)
PtrToSliceContainer func(ctx context.Context) (*PtrToSliceContainer, error)
Infinity func(ctx context.Context) (float64, error)
StringFromContextInterface func(ctx context.Context) (*StringFromContextInterface, error)
StringFromContextFunction func(ctx context.Context) (string, error)
DefaultScalar func(ctx context.Context, arg string) (string, error)
Slices func(ctx context.Context) (*Slices, error)
ScalarSlice func(ctx context.Context) ([]byte, error)
Fallback func(ctx context.Context, arg FallbackToStringEncoding) (FallbackToStringEncoding, error)
OptionalUnion func(ctx context.Context) (TestUnion, error)
VOkCaseValue func(ctx context.Context) (*VOkCaseValue, error)
VOkCaseNil func(ctx context.Context) (*VOkCaseNil, error)
ValidType func(ctx context.Context) (*ValidType, error)
VariadicModel func(ctx context.Context) (*VariadicModel, error)
WrappedStruct func(ctx context.Context) (*WrappedStruct, error)
WrappedScalar func(ctx context.Context) (otherpkg.Scalar, error)
WrappedMap func(ctx context.Context) (WrappedMap, error)
WrappedSlice func(ctx context.Context) (WrappedSlice, error)
}
SubscriptionResolver struct {
Updated func(ctx context.Context) (<-chan string, error)
InitPayload func(ctx context.Context) (<-chan string, error)
DirectiveArg func(ctx context.Context, arg string) (<-chan *string, error)
DirectiveNullableArg func(ctx context.Context, arg *int, arg2 *int, arg3 *string) (<-chan *string, error)
DirectiveDouble func(ctx context.Context) (<-chan *string, error)
DirectiveUnimplemented func(ctx context.Context) (<-chan *string, error)
Issue896b func(ctx context.Context) (<-chan []*CheckIssue896, error)
ErrorRequired func(ctx context.Context) (<-chan *Error, error)
}
UserResolver struct {
Friends func(ctx context.Context, obj *User) ([]*User, error)
Pets func(ctx context.Context, obj *User, limit *int) ([]*Pet, error)
}
WrappedMapResolver struct {
Get func(ctx context.Context, obj WrappedMap, key string) (string, error)
}
WrappedSliceResolver struct {
Get func(ctx context.Context, obj WrappedSlice, idx int) (string, error)
}
FieldsOrderInputResolver struct {
OverrideFirstField func(ctx context.Context, obj *FieldsOrderInput, data *string) error
}
}
func (r *Stub) BackedByInterface() BackedByInterfaceResolver {
return &stubBackedByInterface{r}
}
func (r *Stub) Errors() ErrorsResolver {
return &stubErrors{r}
}
func (r *Stub) ForcedResolver() ForcedResolverResolver {
return &stubForcedResolver{r}
}
func (r *Stub) ModelMethods() ModelMethodsResolver {
return &stubModelMethods{r}
}
func (r *Stub) Mutation() MutationResolver {
return &stubMutation{r}
}
func (r *Stub) OverlappingFields() OverlappingFieldsResolver {
return &stubOverlappingFields{r}
}
func (r *Stub) Panics() PanicsResolver {
return &stubPanics{r}
}
func (r *Stub) Pet() PetResolver {
return &stubPet{r}
}
func (r *Stub) Primitive() PrimitiveResolver {
return &stubPrimitive{r}
}
func (r *Stub) PrimitiveString() PrimitiveStringResolver {
return &stubPrimitiveString{r}
}
func (r *Stub) Query() QueryResolver {
return &stubQuery{r}
}
func (r *Stub) Subscription() SubscriptionResolver {
return &stubSubscription{r}
}
func (r *Stub) User() UserResolver {
return &stubUser{r}
}
func (r *Stub) WrappedMap() WrappedMapResolver {
return &stubWrappedMap{r}
}
func (r *Stub) WrappedSlice() WrappedSliceResolver {
return &stubWrappedSlice{r}
}
func (r *Stub) FieldsOrderInput() FieldsOrderInputResolver {
return &stubFieldsOrderInput{r}
}
type stubBackedByInterface struct{ *Stub }
func (r *stubBackedByInterface) ID(ctx context.Context, obj BackedByInterface) (string, error) {
return r.BackedByInterfaceResolver.ID(ctx, obj)
}
type stubErrors struct{ *Stub }
func (r *stubErrors) A(ctx context.Context, obj *Errors) (*Error, error) {
return r.ErrorsResolver.A(ctx, obj)
}
func (r *stubErrors) B(ctx context.Context, obj *Errors) (*Error, error) {
return r.ErrorsResolver.B(ctx, obj)
}
func (r *stubErrors) C(ctx context.Context, obj *Errors) (*Error, error) {
return r.ErrorsResolver.C(ctx, obj)
}
func (r *stubErrors) D(ctx context.Context, obj *Errors) (*Error, error) {
return r.ErrorsResolver.D(ctx, obj)
}
func (r *stubErrors) E(ctx context.Context, obj *Errors) (*Error, error) {
return r.ErrorsResolver.E(ctx, obj)
}
type stubForcedResolver struct{ *Stub }
func (r *stubForcedResolver) Field(ctx context.Context, obj *ForcedResolver) (*Circle, error) {
return r.ForcedResolverResolver.Field(ctx, obj)
}
type stubModelMethods struct{ *Stub }
func (r *stubModelMethods) ResolverField(ctx context.Context, obj *ModelMethods) (bool, error) {
return r.ModelMethodsResolver.ResolverField(ctx, obj)
}
type stubMutation struct{ *Stub }
func (r *stubMutation) DefaultInput(ctx context.Context, input DefaultInput) (*DefaultParametersMirror, error) {
return r.MutationResolver.DefaultInput(ctx, input)
}
func (r *stubMutation) OverrideValueViaInput(ctx context.Context, input FieldsOrderInput) (*FieldsOrderPayload, error) {
return r.MutationResolver.OverrideValueViaInput(ctx, input)
}
func (r *stubMutation) UpdateSomething(ctx context.Context, input SpecialInput) (string, error) {
return r.MutationResolver.UpdateSomething(ctx, input)
}
func (r *stubMutation) UpdatePtrToPtr(ctx context.Context, input UpdatePtrToPtrOuter) (*PtrToPtrOuter, error) {
return r.MutationResolver.UpdatePtrToPtr(ctx, input)
}
type stubOverlappingFields struct{ *Stub }
func (r *stubOverlappingFields) OldFoo(ctx context.Context, obj *OverlappingFields) (int, error) {
return r.OverlappingFieldsResolver.OldFoo(ctx, obj)
}
type stubPanics struct{ *Stub }
func (r *stubPanics) FieldScalarMarshal(ctx context.Context, obj *Panics) ([]MarshalPanic, error) {
return r.PanicsResolver.FieldScalarMarshal(ctx, obj)
}
func (r *stubPanics) ArgUnmarshal(ctx context.Context, obj *Panics, u []MarshalPanic) (bool, error) {
return r.PanicsResolver.ArgUnmarshal(ctx, obj, u)
}
type stubPet struct{ *Stub }
func (r *stubPet) Friends(ctx context.Context, obj *Pet, limit *int) ([]*Pet, error) {
return r.PetResolver.Friends(ctx, obj, limit)
}
type stubPrimitive struct{ *Stub }
func (r *stubPrimitive) Value(ctx context.Context, obj *Primitive) (int, error) {
return r.PrimitiveResolver.Value(ctx, obj)
}
type stubPrimitiveString struct{ *Stub }
func (r *stubPrimitiveString) Value(ctx context.Context, obj *PrimitiveString) (string, error) {
return r.PrimitiveStringResolver.Value(ctx, obj)
}
func (r *stubPrimitiveString) Len(ctx context.Context, obj *PrimitiveString) (int, error) {
return r.PrimitiveStringResolver.Len(ctx, obj)
}
type stubQuery struct{ *Stub }
func (r *stubQuery) InvalidIdentifier(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) {
return r.QueryResolver.InvalidIdentifier(ctx)
}
func (r *stubQuery) Collision(ctx context.Context) (*introspection1.It, error) {
return r.QueryResolver.Collision(ctx)
}
func (r *stubQuery) MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) {
return r.QueryResolver.MapInput(ctx, input)
}
func (r *stubQuery) Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) {
return r.QueryResolver.Recursive(ctx, input)
}
func (r *stubQuery) NestedInputs(ctx context.Context, input [][]*OuterInput) (*bool, error) {
return r.QueryResolver.NestedInputs(ctx, input)
}
func (r *stubQuery) NestedOutputs(ctx context.Context) ([][]*OuterObject, error) {
return r.QueryResolver.NestedOutputs(ctx)
}
func (r *stubQuery) ModelMethods(ctx context.Context) (*ModelMethods, error) {
return r.QueryResolver.ModelMethods(ctx)
}
func (r *stubQuery) User(ctx context.Context, id int) (*User, error) {
return r.QueryResolver.User(ctx, id)
}
func (r *stubQuery) NullableArg(ctx context.Context, arg *int) (*string, error) {
return r.QueryResolver.NullableArg(ctx, arg)
}
func (r *stubQuery) InputSlice(ctx context.Context, arg []string) (bool, error) {
return r.QueryResolver.InputSlice(ctx, arg)
}
func (r *stubQuery) InputNullableSlice(ctx context.Context, arg []string) (bool, error) {
return r.QueryResolver.InputNullableSlice(ctx, arg)
}
func (r *stubQuery) ShapeUnion(ctx context.Context) (ShapeUnion, error) {
return r.QueryResolver.ShapeUnion(ctx)
}
func (r *stubQuery) Autobind(ctx context.Context) (*Autobind, error) {
return r.QueryResolver.Autobind(ctx)
}
func (r *stubQuery) DeprecatedField(ctx context.Context) (string, error) {
return r.QueryResolver.DeprecatedField(ctx)
}
func (r *stubQuery) Overlapping(ctx context.Context) (*OverlappingFields, error) {
return r.QueryResolver.Overlapping(ctx)
}
func (r *stubQuery) DefaultParameters(ctx context.Context, falsyBoolean *bool, truthyBoolean *bool) (*DefaultParametersMirror, error) {
return r.QueryResolver.DefaultParameters(ctx, falsyBoolean, truthyBoolean)
}
func (r *stubQuery) DirectiveArg(ctx context.Context, arg string) (*string, error) {
return r.QueryResolver.DirectiveArg(ctx, arg)
}
func (r *stubQuery) DirectiveNullableArg(ctx context.Context, arg *int, arg2 *int, arg3 *string) (*string, error) {
return r.QueryResolver.DirectiveNullableArg(ctx, arg, arg2, arg3)
}
func (r *stubQuery) DirectiveInputNullable(ctx context.Context, arg *InputDirectives) (*string, error) {
return r.QueryResolver.DirectiveInputNullable(ctx, arg)
}
func (r *stubQuery) DirectiveInput(ctx context.Context, arg InputDirectives) (*string, error) {
return r.QueryResolver.DirectiveInput(ctx, arg)
}
func (r *stubQuery) DirectiveInputType(ctx context.Context, arg InnerInput) (*string, error) {
return r.QueryResolver.DirectiveInputType(ctx, arg)
}
func (r *stubQuery) DirectiveObject(ctx context.Context) (*ObjectDirectives, error) {
return r.QueryResolver.DirectiveObject(ctx)
}
func (r *stubQuery) DirectiveObjectWithCustomGoModel(ctx context.Context) (*ObjectDirectivesWithCustomGoModel, error) {
return r.QueryResolver.DirectiveObjectWithCustomGoModel(ctx)
}
func (r *stubQuery) DirectiveFieldDef(ctx context.Context, ret string) (string, error) {
return r.QueryResolver.DirectiveFieldDef(ctx, ret)
}
func (r *stubQuery) DirectiveField(ctx context.Context) (*string, error) {
return r.QueryResolver.DirectiveField(ctx)
}
func (r *stubQuery) DirectiveDouble(ctx context.Context) (*string, error) {
return r.QueryResolver.DirectiveDouble(ctx)
}
func (r *stubQuery) DirectiveUnimplemented(ctx context.Context) (*string, error) {
return r.QueryResolver.DirectiveUnimplemented(ctx)
}
func (r *stubQuery) EmbeddedCase1(ctx context.Context) (*EmbeddedCase1, error) {
return r.QueryResolver.EmbeddedCase1(ctx)
}
func (r *stubQuery) EmbeddedCase2(ctx context.Context) (*EmbeddedCase2, error) {
return r.QueryResolver.EmbeddedCase2(ctx)
}
func (r *stubQuery) EmbeddedCase3(ctx context.Context) (*EmbeddedCase3, error) {
return r.QueryResolver.EmbeddedCase3(ctx)
}
func (r *stubQuery) EnumInInput(ctx context.Context, input *InputWithEnumValue) (EnumTest, error) {
return r.QueryResolver.EnumInInput(ctx, input)
}
func (r *stubQuery) Shapes(ctx context.Context) ([]Shape, error) {
return r.QueryResolver.Shapes(ctx)
}
func (r *stubQuery) NoShape(ctx context.Context) (Shape, error) {
return r.QueryResolver.NoShape(ctx)
}
func (r *stubQuery) Node(ctx context.Context) (Node, error) {
return r.QueryResolver.Node(ctx)
}
func (r *stubQuery) NoShapeTypedNil(ctx context.Context) (Shape, error) {
return r.QueryResolver.NoShapeTypedNil(ctx)
}
func (r *stubQuery) Animal(ctx context.Context) (Animal, error) {
return r.QueryResolver.Animal(ctx)
}
func (r *stubQuery) NotAnInterface(ctx context.Context) (BackedByInterface, error) {
return r.QueryResolver.NotAnInterface(ctx)
}
func (r *stubQuery) Dog(ctx context.Context) (*Dog, error) {
return r.QueryResolver.Dog(ctx)
}
func (r *stubQuery) Issue896a(ctx context.Context) ([]*CheckIssue896, error) {
return r.QueryResolver.Issue896a(ctx)
}
func (r *stubQuery) MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) {
return r.QueryResolver.MapStringInterface(ctx, in)
}
func (r *stubQuery) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) {
return r.QueryResolver.MapNestedStringInterface(ctx, in)
}
func (r *stubQuery) ErrorBubble(ctx context.Context) (*Error, error) {
return r.QueryResolver.ErrorBubble(ctx)
}
func (r *stubQuery) ErrorBubbleList(ctx context.Context) ([]*Error, error) {
return r.QueryResolver.ErrorBubbleList(ctx)
}
func (r *stubQuery) ErrorList(ctx context.Context) ([]*Error, error) {
return r.QueryResolver.ErrorList(ctx)
}
func (r *stubQuery) Errors(ctx context.Context) (*Errors, error) {
return r.QueryResolver.Errors(ctx)
}
func (r *stubQuery) Valid(ctx context.Context) (string, error) {
return r.QueryResolver.Valid(ctx)
}
func (r *stubQuery) Panics(ctx context.Context) (*Panics, error) {
return r.QueryResolver.Panics(ctx)
}
func (r *stubQuery) PrimitiveObject(ctx context.Context) ([]Primitive, error) {
return r.QueryResolver.PrimitiveObject(ctx)
}
func (r *stubQuery) PrimitiveStringObject(ctx context.Context) ([]PrimitiveString, error) {
return r.QueryResolver.PrimitiveStringObject(ctx)
}
func (r *stubQuery) PtrToSliceContainer(ctx context.Context) (*PtrToSliceContainer, error) {
return r.QueryResolver.PtrToSliceContainer(ctx)
}
func (r *stubQuery) Infinity(ctx context.Context) (float64, error) {
return r.QueryResolver.Infinity(ctx)
}
func (r *stubQuery) StringFromContextInterface(ctx context.Context) (*StringFromContextInterface, error) {
return r.QueryResolver.StringFromContextInterface(ctx)
}
func (r *stubQuery) StringFromContextFunction(ctx context.Context) (string, error) {
return r.QueryResolver.StringFromContextFunction(ctx)
}
func (r *stubQuery) DefaultScalar(ctx context.Context, arg string) (string, error) {
return r.QueryResolver.DefaultScalar(ctx, arg)
}
func (r *stubQuery) Slices(ctx context.Context) (*Slices, error) {
return r.QueryResolver.Slices(ctx)
}
func (r *stubQuery) ScalarSlice(ctx context.Context) ([]byte, error) {
return r.QueryResolver.ScalarSlice(ctx)
}
func (r *stubQuery) Fallback(ctx context.Context, arg FallbackToStringEncoding) (FallbackToStringEncoding, error) {
return r.QueryResolver.Fallback(ctx, arg)
}
func (r *stubQuery) OptionalUnion(ctx context.Context) (TestUnion, error) {
return r.QueryResolver.OptionalUnion(ctx)
}
func (r *stubQuery) VOkCaseValue(ctx context.Context) (*VOkCaseValue, error) {
return r.QueryResolver.VOkCaseValue(ctx)
}
func (r *stubQuery) VOkCaseNil(ctx context.Context) (*VOkCaseNil, error) {
return r.QueryResolver.VOkCaseNil(ctx)
}
func (r *stubQuery) ValidType(ctx context.Context) (*ValidType, error) {
return r.QueryResolver.ValidType(ctx)
}
func (r *stubQuery) VariadicModel(ctx context.Context) (*VariadicModel, error) {
return r.QueryResolver.VariadicModel(ctx)
}
func (r *stubQuery) WrappedStruct(ctx context.Context) (*WrappedStruct, error) {
return r.QueryResolver.WrappedStruct(ctx)
}
func (r *stubQuery) WrappedScalar(ctx context.Context) (otherpkg.Scalar, error) {
return r.QueryResolver.WrappedScalar(ctx)
}
func (r *stubQuery) WrappedMap(ctx context.Context) (WrappedMap, error) {
return r.QueryResolver.WrappedMap(ctx)
}
func (r *stubQuery) WrappedSlice(ctx context.Context) (WrappedSlice, error) {
return r.QueryResolver.WrappedSlice(ctx)
}
type stubSubscription struct{ *Stub }
func (r *stubSubscription) Updated(ctx context.Context) (<-chan string, error) {
return r.SubscriptionResolver.Updated(ctx)
}
func (r *stubSubscription) InitPayload(ctx context.Context) (<-chan string, error) {
return r.SubscriptionResolver.InitPayload(ctx)
}
func (r *stubSubscription) DirectiveArg(ctx context.Context, arg string) (<-chan *string, error) {
return r.SubscriptionResolver.DirectiveArg(ctx, arg)
}
func (r *stubSubscription) DirectiveNullableArg(ctx context.Context, arg *int, arg2 *int, arg3 *string) (<-chan *string, error) {
return r.SubscriptionResolver.DirectiveNullableArg(ctx, arg, arg2, arg3)
}
func (r *stubSubscription) DirectiveDouble(ctx context.Context) (<-chan *string, error) {
return r.SubscriptionResolver.DirectiveDouble(ctx)
}
func (r *stubSubscription) DirectiveUnimplemented(ctx context.Context) (<-chan *string, error) {
return r.SubscriptionResolver.DirectiveUnimplemented(ctx)
}
func (r *stubSubscription) Issue896b(ctx context.Context) (<-chan []*CheckIssue896, error) {
return r.SubscriptionResolver.Issue896b(ctx)
}
func (r *stubSubscription) ErrorRequired(ctx context.Context) (<-chan *Error, error) {
return r.SubscriptionResolver.ErrorRequired(ctx)
}
type stubUser struct{ *Stub }
func (r *stubUser) Friends(ctx context.Context, obj *User) ([]*User, error) {
return r.UserResolver.Friends(ctx, obj)
}
func (r *stubUser) Pets(ctx context.Context, obj *User, limit *int) ([]*Pet, error) {
return r.UserResolver.Pets(ctx, obj, limit)
}
type stubWrappedMap struct{ *Stub }
func (r *stubWrappedMap) Get(ctx context.Context, obj WrappedMap, key string) (string, error) {
return r.WrappedMapResolver.Get(ctx, obj, key)
}
type stubWrappedSlice struct{ *Stub }
func (r *stubWrappedSlice) Get(ctx context.Context, obj WrappedSlice, idx int) (string, error) {
return r.WrappedSliceResolver.Get(ctx, obj, idx)
}
type stubFieldsOrderInput struct{ *Stub }
func (r *stubFieldsOrderInput) OverrideFirstField(ctx context.Context, obj *FieldsOrderInput, data *string) error {
return r.FieldsOrderInputResolver.OverrideFirstField(ctx, obj, data)
}