Documentation ¶
Index ¶
- func ConstraintSize(ctx context.Context, obj interface{}, next graphql.Resolver, minimun int64, ...) (interface{}, error)
- func MarshalGormDeletedAt(gd gorm.DeletedAt) graphql.Marshaler
- func MarshalInt64ID(i int64) graphql.Marshaler
- func MarshalNullInt64(i null.Int) graphql.Marshaler
- func MarshalNullInt64ID(i null.Int) graphql.Marshaler
- func MarshalNullString(i null.String) graphql.Marshaler
- func MarshalNullTimeRFC3339Nano(nt null.Time) graphql.Marshaler
- func MarshalTimeRFC3339Nano(tt time.Time) graphql.Marshaler
- func UnmarshalGormDeletedAt(v interface{}) (gorm.DeletedAt, error)
- func UnmarshalInt64ID(v interface{}) (int64, error)
- func UnmarshalNullInt64(v interface{}) (null.Int, error)
- func UnmarshalNullInt64ID(v interface{}) (null.Int, error)
- func UnmarshalNullString(v interface{}) (null.String, error)
- func UnmarshalNullTimeRFC3339Nano(v interface{}) (null.Time, error)
- func UnmarshalTimeRFC3339Nano(v interface{}) (time.Time, error)
- type GQLError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstraintSize ¶ added in v1.20.0
func ConstraintSize(ctx context.Context, obj interface{}, next graphql.Resolver, minimun int64, maximum int64, field *string) (interface{}, error)
ConstraintSize directive to constrain field between minimun and maximum values. if field is above maximum, then directive returns maximum. if field is below minimun, then directive returns minimun. else return field.
func MarshalGormDeletedAt ¶ added in v1.17.0
MarshalGormDeletedAt marshal gorm.DeletedAt to string
func MarshalInt64ID ¶
MarshalInt64ID marshal int64 to string ID
func MarshalNullInt64 ¶ added in v1.19.0
MarshalNullInt64 marshal int64 to string ID
func MarshalNullInt64ID ¶ added in v1.19.0
MarshalNullInt64ID marshal int64 to string ID
func MarshalNullString ¶ added in v1.19.1
MarshalNullString marshal int64 to string ID
func MarshalNullTimeRFC3339Nano ¶ added in v1.19.0
MarshalNullTimeRFC3339Nano :nodoc:
func MarshalTimeRFC3339Nano ¶ added in v1.17.0
MarshalTimeRFC3339Nano marshal time.Time to string RFC3339Nano
func UnmarshalGormDeletedAt ¶ added in v1.17.0
UnmarshalGormDeletedAt unmarshal v into gorm.DeletedAt
func UnmarshalInt64ID ¶
UnmarshalInt64ID unmarshal ID into int64
func UnmarshalNullInt64 ¶ added in v1.19.0
func UnmarshalNullInt64(v interface{}) (null.Int, error)
UnmarshalNullInt64 unmarshal ID into int64
func UnmarshalNullInt64ID ¶ added in v1.19.0
func UnmarshalNullInt64ID(v interface{}) (null.Int, error)
UnmarshalNullInt64ID unmarshal ID into int64
func UnmarshalNullString ¶ added in v1.19.1
func UnmarshalNullString(v interface{}) (null.String, error)
UnmarshalNullString unmarshal string into null.String
func UnmarshalNullTimeRFC3339Nano ¶ added in v1.19.0
func UnmarshalNullTimeRFC3339Nano(v interface{}) (null.Time, error)
UnmarshalNullTimeRFC3339Nano unmarshal v into time.Time
func UnmarshalTimeRFC3339Nano ¶ added in v1.17.0
UnmarshalTimeRFC3339Nano unmarshal v into time.Time