forked from graph-gophers/graphql-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move packer.Unmarshaler interface to decode.Unmarshaler, so the metho…
…ds are actually visible
- Loading branch information
Showing
5 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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