scalar

package
v0.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Date = graphql.NewScalar(graphql.ScalarConfig{
	Name:         "Date",
	Description:  "The `Date` type represents a date only format like YYYY-MM-DD.",
	Serialize:    serializeDate,
	ParseValue:   parseDate,
	ParseLiteral: parseLiteralDate,
})
View Source
var Numeric = graphql.NewScalar(graphql.ScalarConfig{
	Name:         "Numeric",
	Description:  "The `Numeric` type represents a decimal number.",
	Serialize:    serializeNumeric,
	ParseValue:   parseNumeric,
	ParseLiteral: parseLiteralNumeric,
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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