loadoperations

package
v0.179.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphQLOperationFile added in v0.126.0

type GraphQLOperationFile struct {
	OperationName string `json:"operation_name"`
	ApiMountPath  string `json:"api_mount_path"`
	FilePath      string `json:"file_path"`
	Content       string `json:"content"`
}

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func NewLoader added in v0.126.2

func NewLoader(operationsRootPath string, fragmentsRootPath string, schemaFilePath string) *Loader

func (*Loader) Load

func (l *Loader) Load(pretty bool) (string, error)

type Output

type Output struct {
	GraphQLOperationFiles    []GraphQLOperationFile    `json:"graphql_operation_files"`
	TypeScriptOperationFiles []TypeScriptOperationFile `json:"typescript_operation_files"`
	Invalid                  []string                  `json:"invalid,omitempty"`
	Errors                   []string                  `json:"errors,omitempty"`
	Info                     []string                  `json:"info,omitempty"`
}

type TypeScriptOperationFile added in v0.126.0

type TypeScriptOperationFile struct {
	OperationName string `json:"operation_name"`
	ApiMountPath  string `json:"api_mount_path"`
	FilePath      string `json:"file_path"`
	ModulePath    string `json:"module_path"`
}

Jump to

Keyboard shortcuts

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