scalars

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package scalars exposes custom scalar types and their implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDecimal added in v0.9.0

func MarshalDecimal(d decimal.Decimal) graphql.Marshaler

func UnmarshalDecimal added in v0.9.0

func UnmarshalDecimal(v any) (decimal.Decimal, error)

Types

type StringList

type StringList []string

func (StringList) MarshalGQL

func (s StringList) MarshalGQL(w io.Writer)

func (StringList) MarshalJSON

func (s StringList) MarshalJSON() ([]byte, error)

func (*StringList) UnmarshalGQL

func (s *StringList) UnmarshalGQL(v any) error

func (*StringList) UnmarshalJSON

func (s *StringList) UnmarshalJSON(v []byte) error

Jump to

Keyboard shortcuts

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