gqlast

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoBasicKindStrings = map[types.BasicKind]string{
	types.Invalid: "invalid",

	types.Bool:          "bool",
	types.Int:           "int",
	types.Int8:          "int8",
	types.Int16:         "int16",
	types.Int32:         "int32",
	types.Int64:         "int64",
	types.Uint:          "uint",
	types.Uint8:         "uint8",
	types.Uint16:        "uint16",
	types.Uint32:        "uint32",
	types.Uint64:        "uint64",
	types.Uintptr:       "uintptr",
	types.Float32:       "float32",
	types.Float64:       "float64",
	types.Complex64:     "complex64",
	types.Complex128:    "complex128",
	types.String:        "string",
	types.UnsafePointer: "unsafe pointer",

	types.UntypedBool:    "untyped bool",
	types.UntypedInt:     "untyped int",
	types.UntypedRune:    "untyped rune",
	types.UntypedFloat:   "untyped float",
	types.UntypedComplex: "untyped complex",
	types.UntypedString:  "untyped string",
	types.UntypedNil:     "untyped nil",
}

GoBasicKindStrings maps go basic kind types to strings.

View Source
var GraphQLPrimitivesKinds = map[string]types.BasicKind{
	"Int":     types.Int32,
	"String":  types.String,
	"Float":   types.Float32,
	"Boolean": types.Bool,
	"Object":  types.Invalid,
	"ID":      types.String,
}

GraphQLPrimitivesKinds maps the GraphQL primitives to reflect kinds.

View Source
var GraphQLPrimitivesTypes = map[string]types.Object{
	"Int":     types.Universe.Lookup("int32"),
	"String":  types.Universe.Lookup("string"),
	"Float":   types.Universe.Lookup("float32"),
	"Boolean": types.Universe.Lookup("bool"),
	"ID":      types.Universe.Lookup("string"),
}

GraphQLPrimitivesTypes maps the GraphQL primitives to reflect types.

Functions

func UnwrapASTType

func UnwrapASTType(typ ast.Type) ast.Type

UnwrapASTType unwraps a list, required, or other wrapper type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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