Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrUnmarshall = errors.New("unmarshall error")
)
Functions ¶
This section is empty.
Types ¶
type JSONObject ¶
type JSONObject struct {
// contains filtered or unexported fields
}
JSONObject is a custom GraphQL type to represent JSONObject.
func NewJSONObject ¶
func NewJSONObject(v map[string]interface{}) *JSONObject
func (JSONObject) ImplementsGraphQLType ¶
func (JSONObject) ImplementsGraphQLType(name string) bool
ImplementsGraphQLType maps this custom Go type to the graphql scalar type in the schema.
func (JSONObject) MarshalJSON ¶
func (t JSONObject) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for JSONObject
This function will be called whenever you query for fields that use the JSONObject type.
func (*JSONObject) UnmarshalGraphQL ¶
func (t *JSONObject) UnmarshalGraphQL(input interface{}) error
UnmarshalGraphQL is a custom unmarshaler for JSONObject
This function will be called whenever you use the JSONObject scalar as an input.
type Offset ¶
type Offset struct {
// contains filtered or unexported fields
}
Offset is a custom GraphQL type to represent an offset (large integer with possible negative values).
func (Offset) ImplementsGraphQLType ¶
ImplementsGraphQLType maps this custom Go type to the graphql scalar type in the schema.
func (Offset) MarshalJSON ¶
MarshalJSON is a custom marshaler for Offset
This function will be called whenever you query for fields that use the Offset type.
func (*Offset) UnmarshalGraphQL ¶
UnmarshalGraphQL is a custom unmarshaler for Offset
This function will be called whenever you use the Offset scalar as an input.