gqlutil

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimestampScalar = graphql.NewScalar(graphql.ScalarConfig{
		Name:         "ProtobufTimestamp",
		Description:  "protobuf Timestamp scalar type, serialize Timestamp as Unix millis",
		Serialize:    TimestampScalarSerialize,
		ParseValue:   TimestampScalarParseValue,
		ParseLiteral: graphql.Boolean.ParseLiteral,
	})
)

Functions

func TimestampScalarParseLiteral

func TimestampScalarParseLiteral(v ast.Value) any

func TimestampScalarParseValue

func TimestampScalarParseValue(v any) any

func TimestampScalarSerialize

func TimestampScalarSerialize(v any) any

Types

This section is empty.

Jump to

Keyboard shortcuts

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