graphql

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomClassInfo

type CustomClassInfo struct {
	Name          string `json:"name"`
	Exported      bool   `json:"exported"`
	DefaultExport bool   `json:"defaultExport"`
	Path          string `json:"path"`
}

type CustomEdge

type CustomEdge struct {
	SourceNodeName string
	EdgeName       string
	Type           string
}

func (*CustomEdge) CamelCaseEdgeName

func (e *CustomEdge) CamelCaseEdgeName() string

func (*CustomEdge) GetEdgeName

func (e *CustomEdge) GetEdgeName() string

func (*CustomEdge) GetEntConfig

func (e *CustomEdge) GetEntConfig() *schemaparser.EntConfigInfo

func (*CustomEdge) GetGraphQLConnectionName

func (e *CustomEdge) GetGraphQLConnectionName() string

func (*CustomEdge) GetGraphQLEdgePrefix

func (e *CustomEdge) GetGraphQLEdgePrefix() string

func (*CustomEdge) GetNodeInfo

func (e *CustomEdge) GetNodeInfo() nodeinfo.NodeInfo

func (*CustomEdge) GetSourceNodeName

func (e *CustomEdge) GetSourceNodeName() string

func (*CustomEdge) GetTSGraphQLTypeImports

func (e *CustomEdge) GetTSGraphQLTypeImports() []enttype.FileImport

func (*CustomEdge) GraphQLEdgeName

func (e *CustomEdge) GraphQLEdgeName() string

func (*CustomEdge) HideFromGraphQL

func (e *CustomEdge) HideFromGraphQL() bool

func (*CustomEdge) PolymorphicEdge

func (e *CustomEdge) PolymorphicEdge() bool

func (*CustomEdge) TsEdgeQueryEdgeName

func (e *CustomEdge) TsEdgeQueryEdgeName() string

func (*CustomEdge) TsEdgeQueryName

func (e *CustomEdge) TsEdgeQueryName() string

func (*CustomEdge) UniqueEdge

func (e *CustomEdge) UniqueEdge() bool

type CustomField

type CustomField struct {
	Node         string          `json:"nodeName"`
	GraphQLName  string          `json:"gqlName"`
	FunctionName string          `json:"functionName"`
	Args         []CustomItem    `json:"args"`
	Results      []CustomItem    `json:"results"`
	FieldType    CustomFieldType `json:"fieldType"`
}

type CustomFieldType

type CustomFieldType string

CustomFieldType for a TypeScript class

const Accessor CustomFieldType = "ACCESSOR"

these values map to CustomFieldType enum in JS

const AsyncFunction CustomFieldType = "ASYNC_FUNCTION"
const Field CustomFieldType = "FIELD"
const Function CustomFieldType = "FUNCTION"

type CustomFile

type CustomFile struct {
	Imports map[string]*CustomImportInfo `json:"imports"`
}

type CustomImportInfo

type CustomImportInfo struct {
	Path          string `json:"path"`
	DefaultImport bool   `json:"defaultImport"`
}

type CustomItem

type CustomItem struct {
	Name         string       `json:"name"`
	Type         string       `json:"type"`
	Nullable     NullableItem `json:"nullable"`
	List         bool         `json:"list"`
	Connection   bool         `json:"connection"`
	IsContextArg bool         `json:"isContextArg"`
	TSType       string       `json:"tsType"`
	// contains filtered or unexported fields
}

type CustomObject

type CustomObject struct {
	// TODOO
	NodeName  string `json:"nodeName"`
	ClassName string `json:"className"`
}

type CustomScalarInfo added in v0.0.33

type CustomScalarInfo struct {
	Description    string `json:"description"`
	Name           string `json:"name"`
	SpecifiedByURL string `json:"specifiedByUrl"`
}

type CustomType

type CustomType struct {
	Type       string `json:"type"`
	ImportPath string `json:"importPath"`

	// custom scalar info. used for schema.gql
	ScalarInfo *CustomScalarInfo `json:"scalarInfo"`

	// both of these are optional
	TSType       string `json:"tsType"`
	TSImportPath string `json:"tsImportPath"`
}

type NullableItem

type NullableItem string
const NullableContents NullableItem = "contents"
const NullableContentsAndList NullableItem = "contentsAndList"
const NullableTrue NullableItem = "true"

type ResolverBuild

type ResolverBuild struct {
	*codegen.Data

	PackageName  string
	ResolverType string
	Config       *intcodegen.Config
}

ResolverBuild is the object passed to the template to generate the graphql code

type ServerBuild

type ServerBuild struct {
	codegen.Data

	ExecPackageName     string
	ResolverPackageName string
}

ServerBuild is the object passed to the template to generate the graphql code

type Step

type Step struct {
}

func (*Step) Name

func (p *Step) Name() string

func (*Step) ProcessData

func (p *Step) ProcessData(processor *codegen.Processor) error

type TSStep

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

func (*TSStep) Name

func (p *TSStep) Name() string

func (*TSStep) PreProcessData

func (p *TSStep) PreProcessData(processor *codegen.Processor) error

func (*TSStep) ProcessData

func (p *TSStep) ProcessData(processor *codegen.Processor) error

Jump to

Keyboard shortcuts

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