Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active September 7, 2021 17:14
Show Gist options
  • Save percybolmer/57ac997a3394445c0b154cbf2f381bfa to your computer and use it in GitHub Desktop.
Save percybolmer/57ac997a3394445c0b154cbf2f381bfa to your computer and use it in GitHub Desktop.
GraphQL
package gopher
import "github.com/graphql-go/graphql"
type Resolver interface {
// ResolveGophers should return a list of all gophers in the repository
ResolveGophers(p graphql.ResolveParams) (interface{}, error)
// ResolveGopher is used to respond to single queries for gophers
ResolveGopher(p graphql.ResolveParams) (interface{}, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment