Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed fastgql.graphql FastGQLSchema string FastGQLDirectives = []string{"table", "generate", "relation", "generateFilterInput", "generateMutations"} )
Functions ¶
func FormatSchema ¶
FormatSchema into multiple sources, the original format schema from gqlparser lib saves all in one file, in this case after augmentation we want to keep all original files and structure and all added definitions to put in fastgql.graphql file.
Types ¶
type FastGqlPlugin ¶
type FastGqlPlugin struct{}
FastGqlPlugin augments and extends the original schema
func (FastGqlPlugin) CreateAugmented ¶
func (f FastGqlPlugin) CreateAugmented(schema *ast.Schema, augmenters ...augmenters.Augmenter) ([]*ast.Source, error)
CreateAugmented augments *ast.Schema returning []*ast.Source files that are augmented with filters, mutations etc' so gqlgen can generate an augmented fastGQL server
func (FastGqlPlugin) MarkResolvers ¶
func (f FastGqlPlugin) MarkResolvers(c *config.Config) error
MarkResolvers goes over all types and marks any fields that resolver should be created for, theses resolvers are generated by the fastgql resolvergen.Plugin
func (FastGqlPlugin) MutateConfig ¶
func (f FastGqlPlugin) MutateConfig(c *config.Config) error
func (FastGqlPlugin) Name ¶
func (f FastGqlPlugin) Name() string
Click to show internal directories.
Click to hide internal directories.