Skip to content

Instantly share code, notes, and snippets.

@bickyeric bickyeric/schema.graphql
Last active Jul 16, 2019

What would you like to do?
// query_resolver.go
package graph
import "context"
type queryResolver struct {
ComicByID *FindByID
ComicAll *SearchAll
func (r *queryResolver) Comic(ctx context.Context, id string) (*Comic, error) {
return r.ComicByID.Perform(ctx, id)
func (r *queryResolver) AllComics(
ctx context.Context,
skip *int,
limit *int) ([]*Comic, error) {
return r.ComicAll.Perform(ctx, skip, limit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.