Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Upload ¶
type Upload struct { Filename string `json:"filename"` MimeType string `json:"mimetype"` Filepath string `json:"filepath"` }
Upload is the struct used for the new "Upload" GraphQL scalar type
It allows you to use the Upload type in your GraphQL schema, this way:
scalar Upload type Mutation { upload(file: Upload!, title: String!, description: String!): Boolean }
func (Upload) ImplementsGraphQLType ¶
ImplementsGraphQLType is implemented to respect the GraphQL-Go Unmarshaler interface. It allows to chose the name of the GraphQL scalar type you want to implement
func (*Upload) UnmarshalGraphQL ¶
UnmarshalGraphQL is implemented to respect the GraphQL-Go Unmarshaler interface. It hydrates the Upload struct with input data
Click to show internal directories.
Click to hide internal directories.