schemagen

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentDefinition

type ArgumentDefinition struct {
	Name    string
	Type    string
	Default *any
}

type FieldDefinition

type FieldDefinition struct {
	Name       string
	Arguments  []*ArgumentDefinition
	ReturnType string
}

type GraphQLSchema

type GraphQLSchema struct {
	Schema            string
	FieldsToFunctions map[string]string
	MapTypes          []string
}

func GetGraphQLSchema

func GetGraphQLSchema(ctx context.Context, md *metadata.Metadata) (*GraphQLSchema, error)

type NameTypePair

type NameTypePair struct {
	Name string
	Type string
}

type TransformError

type TransformError struct {
	Source any
	Error  error
}

func (*TransformError) String

func (e *TransformError) String() string

type TypeDefinition

type TypeDefinition struct {
	Name      string
	Fields    []*NameTypePair
	IsMapType bool
}

Jump to

Keyboard shortcuts

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