scalars

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalInt64

func MarshalInt64(t int64) 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 MarshalTimestamp

func MarshalTimestamp(t int64) graphql.Marshaler

func MarshalUUID

func MarshalUUID(id uuid.UUID) graphql.Marshaler

func MarshalUint

func MarshalUint(t uint) graphql.Marshaler

func UnmarshalInt64

func UnmarshalInt64(v interface{}) (int64, 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

func UnmarshalTimestamp

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

func UnmarshalUUID

func UnmarshalUUID(v interface{}) (uuid.UUID, error)

func UnmarshalUint

func UnmarshalUint(v interface{}) (uint, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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