Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID[T any] struct { Value T }
ID represents GraphQL's "ID" scalar type. A custom type may be used instead.
func (ID[T]) ImplementsGraphQLType ¶
func (ID[T]) MarshalJSON ¶
func (*ID[T]) UnmarshalGraphQL ¶
type NullBool ¶
NullBool is a boolean that can be null. Use it in input structs to differentiate a value explicitly set to null from an omitted value. When the value is defined (either null or a value) Set is true.
func (NullBool) ImplementsGraphQLType ¶
func (*NullBool) UnmarshalGraphQL ¶
type NullFloat ¶
NullFloat is a float that can be null. Use it in input structs to differentiate a value explicitly set to null from an omitted value. When the value is defined (either null or a value) Set is true.
func (NullFloat) ImplementsGraphQLType ¶
func (*NullFloat) UnmarshalGraphQL ¶
type NullID ¶
NullID is an ID that can be null. Use it in input structs to differentiate a value explicitly set to null from an omitted value. When the value is defined (either null or a value) Set is true.
func (NullID[T]) ImplementsGraphQLType ¶
func (*NullID[T]) UnmarshalGraphQL ¶
type NullInt ¶
NullInt is an int that can be null. Use it in input structs to differentiate a value explicitly set to null from an omitted value. When the value is defined (either null or a value) Set is true.
func (NullInt) ImplementsGraphQLType ¶
func (*NullInt) UnmarshalGraphQL ¶
type NullString ¶
NullString is a string that can be null. Use it in input structs to differentiate a value explicitly set to null from an omitted value. When the value is defined (either null or a value) Set is true.
func (NullString) ImplementsGraphQLType ¶
func (NullString) ImplementsGraphQLType(name string) bool
func (*NullString) Nullable ¶
func (s *NullString) Nullable()
func (*NullString) UnmarshalGraphQL ¶
func (s *NullString) UnmarshalGraphQL(input interface{}) error
type NullTime ¶
NullTime is a time value that can be null. Use it in input structs to differentiate a value explicitly set to null from an omitted value. When the value is defined (either null or a value) Set is true.
func (NullTime) ImplementsGraphQLType ¶
func (*NullTime) 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