github.com/senomas/gqlgen@v0.17.11-0.20220626120754-9aee61b0716a/plugin/resolvergen/testdata/filetemplate/out/schema.custom.go (about) 1 package customresolver 2 3 // This file will be automatically regenerated based on the schema, any resolver implementations 4 // will be copied through when generating and any unknown code will be moved to the end. 5 6 import ( 7 "context" 8 9 customresolver "github.com/99designs/gqlgen/plugin/resolvergen/testdata/singlefile/out" 10 ) 11 12 func (r *queryCustomResolverType) Resolver(ctx context.Context) (*customresolver.Resolver, error) { 13 // CustomerResolverType.Resolver implementation 14 return nil, nil 15 } 16 17 func (r *resolverCustomResolverType) Name(ctx context.Context, obj *customresolver.Resolver) (string, error) { 18 // CustomerResolverType.Name implementation 19 return "", nil 20 } 21 22 // Query returns customresolver.QueryResolver implementation. 23 func (r *CustomResolverType) Query() customresolver.QueryResolver { return &queryCustomResolverType{r} } 24 25 // Resolver returns customresolver.ResolverResolver implementation. 26 func (r *CustomResolverType) Resolver() customresolver.ResolverResolver { 27 return &resolverCustomResolverType{r} 28 } 29 30 type queryCustomResolverType struct{ *CustomResolverType } 31 type resolverCustomResolverType struct{ *CustomResolverType } 32 33 // !!! WARNING !!! 34 // The code below was going to be deleted when updating resolvers. It has been copied here so you have 35 // one last chance to move it out of harms way if you want. There are two reasons this happens: 36 // - When renaming or deleting a resolver the old code will be put in here. You can safely delete 37 // it when you're done. 38 // - You have helper methods in this file. Move them out to keep these resolver files clean. 39 func AUserHelperFunction() { 40 // AUserHelperFunction implementation 41 }