Versions in this module Expand all Collapse all v0 v0.0.3 Dec 27, 2021 v0.0.2 Dec 27, 2021 Changes in this version + func LoadQuerySources(queryFileNames []string) ([]*ast.Source, error) + func ParseQueryDocuments(schema *ast.Schema, querySources []*ast.Source, ...) (*ast.QueryDocument, error) + func QueryDocumentsByOperations(schema *ast.Schema, operations ast.OperationList) ([]*ast.QueryDocument, error) + func RenderTemplate(cfg *config.Config, query *Query, mutation *Mutation, fragments []*Fragment, ...) error + type Argument struct + Type types.Type + Variable string + type Fragment struct + Name string + Type types.Type + type Mutation struct + Name string + Type types.Type + type Operation struct + Args []*Argument + Name string + Operation string + ResponseStructName string + VariableDefinitions ast.VariableDefinitionList + func NewOperation(operation *ast.OperationDefinition, queryDocument *ast.QueryDocument, ...) *Operation + type OperationResponse struct + Name string + Type types.Type + type Plugin struct + Client config.PackageConfig + GenerateConfig *gqlgencConfig.GenerateConfig + func New(queryFilePaths []string, client config.PackageConfig, ...) *Plugin + func (p *Plugin) MutateConfig(cfg *config.Config) error + func (p *Plugin) Name() string + type Query struct + Name string + Type types.Type + type ResponseField struct + IsFragmentSpread bool + IsInlineFragment bool + Name string + ResponseFields ResponseFieldList + Tags []string + Type types.Type + type ResponseFieldList []*ResponseField + func (rs ResponseFieldList) IsBasicType() bool + func (rs ResponseFieldList) IsFragment() bool + func (rs ResponseFieldList) IsStructType() bool + func (rs ResponseFieldList) StructType() *types.Struct + type Source struct + func NewSource(schema *ast.Schema, queryDocument *ast.QueryDocument, ...) *Source + func (s *Source) Fragments() ([]*Fragment, error) + func (s *Source) Mutation() (*Mutation, error) + func (s *Source) OperationResponses() ([]*OperationResponse, error) + func (s *Source) Operations(queryDocuments []*ast.QueryDocument) ([]*Operation, error) + func (s *Source) Query() (*Query, error) + type SourceGenerator struct + func NewSourceGenerator(cfg *config.Config, client config.PackageConfig) *SourceGenerator + func (r *SourceGenerator) NewResponseField(selection ast.Selection) *ResponseField + func (r *SourceGenerator) NewResponseFields(selectionSet ast.SelectionSet) ResponseFieldList + func (r *SourceGenerator) NewResponseFieldsByDefinition(definition *ast.Definition) (ResponseFieldList, error) + func (r *SourceGenerator) OperationArguments(variableDefinitions ast.VariableDefinitionList) []*Argument + func (r *SourceGenerator) Type(typeName string) types.Type