Documentation ¶
Index ¶
- func AddArgumentType(definition *ast.ArgumentDefinition, output *strings.Builder, maybeType string, ...)
- func AddBaseTypes(output *strings.Builder)
- func AddFieldType(definition *ast.FieldDefinition, output *strings.Builder, maybeType string, ...)
- func AddScalars(schema *ast.Schema, output *strings.Builder) []*ast.Definition
- func ConvertDefinition(definition *ast.Definition, output *strings.Builder, ...) error
- func ConvertEnum(definition *ast.Definition, output *strings.Builder)
- func ConvertInputObject(definition *ast.Definition, output *strings.Builder, ...)
- func ConvertInterface(definition *ast.Definition, output *strings.Builder, ...)
- func ConvertObject(definition *ast.Definition, output *strings.Builder, ...)
- func ConvertSchema(schema *ast.Schema, output *strings.Builder)
- func ConvertUnion(definition *ast.Definition, output *strings.Builder)
- func ToCamel(input string) string
- func ToUpper(input string) string
- func VerifyPlugin(pluginName string, config interface{}) error
- func WriteArgumentComment(definition *ast.ArgumentDefinition, output *strings.Builder)
- func WriteComment(definition *ast.Definition, output *strings.Builder)
- func WriteFieldArguments(definition *ast.FieldDefinition, output *strings.Builder, ...)
- func WriteFieldComment(definition *ast.FieldDefinition, output *strings.Builder)
- type PluginTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddArgumentType ¶
func AddArgumentType(definition *ast.ArgumentDefinition, output *strings.Builder, maybeType string, knownScalars []*ast.Definition)
func AddBaseTypes ¶
func AddFieldType ¶
func AddFieldType(definition *ast.FieldDefinition, output *strings.Builder, maybeType string, knownScalars []*ast.Definition)
func AddScalars ¶
AddScalars parses a schema and outputs a Scalars type, it also returns a list of scalars it found
func ConvertDefinition ¶
func ConvertDefinition(definition *ast.Definition, output *strings.Builder, knownScalars []*ast.Definition) error
func ConvertEnum ¶
func ConvertEnum(definition *ast.Definition, output *strings.Builder)
func ConvertInputObject ¶
func ConvertInputObject(definition *ast.Definition, output *strings.Builder, knownScalars []*ast.Definition)
func ConvertInterface ¶
func ConvertInterface(definition *ast.Definition, output *strings.Builder, knownScalars []*ast.Definition)
func ConvertObject ¶
func ConvertObject(definition *ast.Definition, output *strings.Builder, knownScalars []*ast.Definition)
func ConvertSchema ¶
ConvertSchema converts a graphql schema to Typescript output
func ConvertUnion ¶
func ConvertUnion(definition *ast.Definition, output *strings.Builder)
func VerifyPlugin ¶
VerifyPlugin checks if a plugin is executable by faster-graphql-codegen
func WriteArgumentComment ¶
func WriteArgumentComment(definition *ast.ArgumentDefinition, output *strings.Builder)
func WriteComment ¶
func WriteComment(definition *ast.Definition, output *strings.Builder)
func WriteFieldArguments ¶
func WriteFieldArguments(definition *ast.FieldDefinition, output *strings.Builder, knownScalars []*ast.Definition, rootName string)
func WriteFieldComment ¶
func WriteFieldComment(definition *ast.FieldDefinition, output *strings.Builder)
Types ¶
type PluginTask ¶
func (*PluginTask) Introspect ¶
func (p *PluginTask) Introspect()
func (*PluginTask) Typescript ¶
func (p *PluginTask) Typescript()
Click to show internal directories.
Click to hide internal directories.