Last active
September 7, 2021 17:14
-
-
Save percybolmer/57ac997a3394445c0b154cbf2f381bfa to your computer and use it in GitHub Desktop.
GraphQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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