...

Source file src/github.com/99designs/gqlgen/plugin/resolvergen/testdata/followschema/out/schema.resolvers.go

Documentation: github.com/99designs/gqlgen/plugin/resolvergen/testdata/followschema/out

     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  // Code generated by github.com/99designs/gqlgen version v0.17.44-dev
     6  
     7  import (
     8  	"context"
     9  
    10  	customresolver "github.com/99designs/gqlgen/plugin/resolvergen/testdata/singlefile/out"
    11  )
    12  
    13  // Resolver is the resolver for the resolver field.
    14  func (r *queryCustomResolverType) Resolver(ctx context.Context) (_ *customresolver.Resolver, err error) {
    15  	// Named return values are supported.
    16  	return
    17  }
    18  
    19  // Name is the resolver for the name field.
    20  func (r *resolverCustomResolverType) Name(ctx context.Context, obj *customresolver.Resolver) (string, error) {
    21  	// CustomerResolverType.Name implementation
    22  	return "", nil
    23  }
    24  
    25  // Query returns customresolver.QueryResolver implementation.
    26  func (r *CustomResolverType) Query() customresolver.QueryResolver { return &queryCustomResolverType{r} }
    27  
    28  // Resolver returns customresolver.ResolverResolver implementation.
    29  func (r *CustomResolverType) Resolver() customresolver.ResolverResolver {
    30  	return &resolverCustomResolverType{r}
    31  }
    32  
    33  type queryCustomResolverType struct{ *CustomResolverType }
    34  type resolverCustomResolverType struct{ *CustomResolverType }
    35  
    36  // !!! WARNING !!!
    37  // The code below was going to be deleted when updating resolvers. It has been copied here so you have
    38  // one last chance to move it out of harms way if you want. There are two reasons this happens:
    39  //   - When renaming or deleting a resolver the old code will be put in here. You can safely delete
    40  //     it when you're done.
    41  //   - You have helper methods in this file. Move them out to keep these resolver files clean.
    42  func AUserHelperFunction() {
    43  	// AUserHelperFunction implementation
    44  }
    45  

View as plain text