schemagen

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 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
	Type      string
	Arguments []*ArgumentDefinition
	Function  string
	DocLines  []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 RootObjects

type RootObjects struct {
	QueryFields    []*FieldDefinition
	MutationFields []*FieldDefinition
}

func (*RootObjects) AllFields

func (r *RootObjects) AllFields() []*FieldDefinition

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    []*FieldDefinition
	IsMapType bool
	DocLines  []string
}

Jump to

Keyboard shortcuts

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