Skip to content

Instantly share code, notes, and snippets.

@ridhoperdana
Created September 23, 2019 06:16
Show Gist options
  • Save ridhoperdana/d66c3773f895b342155dcca3f48f2df9 to your computer and use it in GitHub Desktop.
Save ridhoperdana/d66c3773f895b342155dcca3f48f2df9 to your computer and use it in GitHub Desktop.
package graphql
import "github.com/graphql-go/graphql"
type Resolver interface {
FetchArticle(params graphql.ResolveParams) (interface{}, error)
GetArticleByID(params graphql.ResolveParams) (interface{}, error)
GetArticleByTitle(params graphql.ResolveParams) (interface{}, error)
UpdateArticle(params graphql.ResolveParams) (interface{}, error)
StoreArticle(params graphql.ResolveParams) (interface{}, error)
DeleteArticle(params graphql.ResolveParams) (interface{}, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment