Skip to content

Instantly share code, notes, and snippets.

@vniche
Created March 7, 2020 01:07
Show Gist options
  • Save vniche/1d18d41fc947dfea9114a993c6d15960 to your computer and use it in GitHub Desktop.
Save vniche/1d18d41fc947dfea9114a993c6d15960 to your computer and use it in GitHub Desktop.
Initially generated resolver.go
// THIS CODE IS A STARTING POINT ONLY. IT WILL NOT BE UPDATED WITH SCHEMA CHANGES.
package graph
import (
"context"
)
type Resolver struct{}
func (r *mutationResolver) Signup(ctx context.Context, input NewUser) (string, error) {
panic("not implemented")
}
func (r *queryResolver) User(ctx context.Context, id string) (*User, error) {
panic("not implemented")
}
func (r *queryResolver) Users(ctx context.Context) ([]*User, error) {
panic("not implemented")
}
func (r *Resolver) Mutation() MutationResolver { return &mutationResolver{r} }
func (r *Resolver) Query() QueryResolver { return &queryResolver{r} }
type mutationResolver struct{ *Resolver }
type queryResolver struct{ *Resolver }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment