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