scalar

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalTimestamp added in v1.3.1

func MarshalTimestamp(t time.Time) graphql.Marshaler

if the type referenced in .gqlgen.yml is a function that returns a marshaller we can use it to encode and decode onto any existing go type.

func UnmarshalTimestamp added in v1.3.1

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

Unmarshal{Typename} is only required if the scalar appears as an input. The raw values have already been decoded from json into int/float64/bool/nil/map[string]interface/[]interface

Types

type Map

type Map map[string]interface{}

Map is an costom scalar type used for graphql and orm model

func (Map) MarshalGQL

func (t Map) MarshalGQL(w io.Writer)

func (*Map) Scan

func (t *Map) Scan(src interface{}) error

func (*Map) UnmarshalGQL

func (t *Map) UnmarshalGQL(v interface{}) error

func (Map) Value

func (t Map) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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