Documentation ¶
Overview ¶
Custom implementation of JSON type because graph-gophers/graphql-go does not support the custom JSON scalar type
Custom implementation of JSON type because graph-gophers/graphql-go does not support the custom JSON scalar type
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
datatype required to be used by gorm so we can support multiple database types for our JSON blobs
func (JSON) ImplementsGraphQLType ¶
func (*JSON) UnmarshalGraphQL ¶
type Time ¶
Time is a custom GraphQL type to represent an instant in time. It has to be added to a schema via "scalar Time" since it is not a predeclared GraphQL type like "ID".
func (Time) ImplementsGraphQLType ¶
ImplementsGraphQLType maps this custom Go type to the graphql scalar type in the schema.
func (Time) MarshalJSON ¶
MarshalJSON is a custom marshaler for Time
This function will be called whenever you query for fields that use the Time type
func (*Time) UnmarshalGraphQL ¶
UnmarshalGraphQL is a custom unmarshaler for Time
This function will be called whenever you use the time scalar as an input