scalar

package
v0.0.0-...-74adf86 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDateTime

func MarshalDateTime(t time.Time) graphql.Marshaler

func MarshalJSON

func MarshalJSON(j map[string]interface{}) graphql.Marshaler

func UnmarshalDateTime

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

func UnmarshalJSON

func UnmarshalJSON(v interface{}) (map[string]interface{}, error)

Types

type Decimal

type Decimal struct {
	decimal.Decimal
}

func (Decimal) MarshalGQL

func (d Decimal) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface found in gqlgen, allowing the type to be marshaled by gqlgen and sent over the wire. This will convert the Decimal to a JSON number as a string.

func (*Decimal) UnmarshalGQL

func (d *Decimal) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface found in gqlgen, allowing the type to be received by a graphql client and unmarshaled.

Jump to

Keyboard shortcuts

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