parser

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSchema

func ParseSchema(sources ...*ast.Source) (*ast.Schema, error)

Types

type QueryField

type QueryField struct {
	Path              string
	SchemaPath        string
	IsDeprecated      bool
	DeprecationReason string
	File              string
	Line              int
}

type QueryFieldList

type QueryFieldList []QueryField

func ParseQueries

func ParseQueries(schema *ast.Schema, sources ...*ast.Source) (QueryFieldList, error)

type SchemaField

type SchemaField struct {
	Name string
	Line int
}

func ParseDeprecatedFields

func ParseDeprecatedFields(schema *ast.Schema) []SchemaField

Jump to

Keyboard shortcuts

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