xgqlgen

package
v1.39.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

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

func MarshalGormDeletedAt(gd gorm.DeletedAt) graphql.Marshaler

MarshalGormDeletedAt marshal gorm.DeletedAt to string

func MarshalInt64ID

func MarshalInt64ID(i int64) graphql.Marshaler

MarshalInt64ID marshal int64 to string ID

func MarshalNullInt64 added in v1.19.0

func MarshalNullInt64(i null.Int) graphql.Marshaler

MarshalNullInt64 marshal int64 to string ID

func MarshalNullInt64ID added in v1.19.0

func MarshalNullInt64ID(i null.Int) graphql.Marshaler

MarshalNullInt64ID marshal int64 to string ID

func MarshalNullString added in v1.19.1

func MarshalNullString(i null.String) graphql.Marshaler

MarshalNullString marshal int64 to string ID

func MarshalNullTimeRFC3339Nano added in v1.19.0

func MarshalNullTimeRFC3339Nano(nt null.Time) graphql.Marshaler

MarshalNullTimeRFC3339Nano :nodoc:

func MarshalTimeRFC3339Nano added in v1.17.0

func MarshalTimeRFC3339Nano(tt time.Time) graphql.Marshaler

MarshalTimeRFC3339Nano marshal time.Time to string RFC3339Nano

func UnmarshalGormDeletedAt added in v1.17.0

func UnmarshalGormDeletedAt(v interface{}) (gorm.DeletedAt, error)

UnmarshalGormDeletedAt unmarshal v into gorm.DeletedAt

func UnmarshalInt64ID

func UnmarshalInt64ID(v interface{}) (int64, error)

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

func UnmarshalTimeRFC3339Nano(v interface{}) (time.Time, error)

UnmarshalTimeRFC3339Nano unmarshal v into time.Time

Types

type GQLError added in v1.18.0

type GQLError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

GQLError :nodoc:

func (GQLError) ToGQLError added in v1.18.0

func (e GQLError) ToGQLError() *gqlerror.Error

ToGQLError self explained

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL