File: decode.go

package info (click to toggle)
golang-github-graph-gophers-graphql-go 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,452 kB
  • sloc: sh: 373; javascript: 21; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
package decode

// Unmarshaler defines the api of Go types mapped to custom GraphQL scalar types
type Unmarshaler interface {
	// ImplementsGraphQLType maps the implementing custom Go type
	// to the GraphQL scalar type in the schema.
	ImplementsGraphQLType(name string) bool
	// UnmarshalGraphQL is the custom unmarshaler for the implementing type
	//
	// This function will be called whenever you use the
	// custom GraphQL scalar type as an input
	UnmarshalGraphQL(input interface{}) error
}