Documentation ¶
Index ¶
- func MarshalDuration(d time.Duration) graphql.Marshaler
- func MarshalID64(id uint64) graphql.Marshaler
- func MarshalTime(t time.Time) graphql.Marshaler
- func MarshalUUID(uid uuid.UUID) graphql.Marshaler
- func UnmarshalDuration(v any) (time.Duration, error)
- func UnmarshalID64(v any) (uint64, error)
- func UnmarshalTime(v any) (time.Time, error)
- func UnmarshalUUID(v any) (uuid.UUID, error)
- type DateTime
- type JSON
- type NullableJSON
- type TimeDuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalDuration ¶
MarshalDuration redecalre the marshalel of standart scalar type Duration
func MarshalID64 ¶
MarshalID64 redecalre the marshalel of standart scalar type uint64 as ID64
func MarshalTime ¶
MarshalTime redecalre the marshalel of standart scalar type Time
func MarshalUUID ¶
MarshalUUID redecalre the marshalel of standart scalar type UUID
func UnmarshalDuration ¶
UnmarshalDuration redecalre the unmarshalel of standart scalar type Duration
func UnmarshalID64 ¶
UnmarshalID64 redecalre the unmarshalel of standart scalar type uint64 as ID64
func UnmarshalTime ¶
UnmarshalTime redecalre the unmarshalel of standart scalar type Time
Types ¶
type DateTime ¶
DateTime implements IO custom type of time with custom format
func DateTimeFromPtr ¶
DateTimeFromPtr returns DateTime object from pointer
func (DateTime) MarshalGQL ¶
MarshalGQL implements method of interface graphql.Marshaler
func (*DateTime) UnmarshalGQL ¶
UnmarshalGQL implements method of interface graphql.Unmarshaler
type JSON ¶
type JSON gosql.JSON[any]
JSON implements IO custom type of JSON
func MustJSONFrom ¶
func (JSON) MarshalGQL ¶
MarshalGQL implements method of interface graphql.Marshaler
func (*JSON) UnmarshalGQL ¶
UnmarshalGQL implements method of interface graphql.Unmarshaler
type NullableJSON ¶
type NullableJSON gosql.NullableJSON[any]
NullableJSON implements IO custom type of JSON
func MustNullableJSONFrom ¶
func MustNullableJSONFrom(v any) *NullableJSON
func NullableJSONFrom ¶
func NullableJSONFrom(v any) (*NullableJSON, error)
func (*NullableJSON) DataOr ¶
func (j *NullableJSON) DataOr(def any) any
DataOr returns data or default value
func (NullableJSON) MarshalGQL ¶
func (j NullableJSON) MarshalGQL(w io.Writer)
MarshalGQL implements method of interface graphql.Marshaler
func (*NullableJSON) SetValue ¶
func (j *NullableJSON) SetValue(v any) error
SetValue from any object
func (*NullableJSON) UnmarshalGQL ¶
func (j *NullableJSON) UnmarshalGQL(v any) error
UnmarshalGQL implements method of interface graphql.Unmarshaler
type TimeDuration ¶
TimeDuration implements IO custom type of time with custom format
func (TimeDuration) Duration ¶
func (t TimeDuration) Duration() time.Duration
Duration object from TimeDuration
func (TimeDuration) MarshalGQL ¶
func (t TimeDuration) MarshalGQL(w io.Writer)
MarshalGQL implements method of interface graphql.Marshaler
func (*TimeDuration) SetDuration ¶
func (t *TimeDuration) SetDuration(d time.Duration)
SetDuration from time object
func (*TimeDuration) UnmarshalGQL ¶
func (t *TimeDuration) UnmarshalGQL(v any) error
UnmarshalGQL implements method of interface graphql.Unmarshaler