Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllDefinitions = []*ast.Definition{ singular.ActionType, list.ActionType, } )
View Source
var ( Directive = directives.ObjectDirectiveDefinition{ Definition: &ast.DirectiveDefinition{ Name: consts.SchemaDefDirectiveResourceName, Description: `This directive is used to mark the object as a resource`, Position: pos, Arguments: ast.ArgumentDefinitionList{ { Name: consts.SchemaDefResourceDirectiveArgName, Type: ast.NonNullNamedType("String", nil), }, { Name: "Route", Type: ast.NamedType("String", nil), }, { Name: "Primary", Type: ast.NamedType("Boolean", nil), }, { Name: consts.SchemaDefResourceDirectiveArgDb, Type: ast.NamedType(db.ResourceConfigInput.Name, nil), Directives: ast.DirectiveList{ {Name: consts.ExcludeArgumentFromType}, }, }, }, Locations: []ast.DirectiveLocation{ ast.LocationObject, }, }, } )
Functions ¶
func SchemaGeneratorHook ¶
func SchemaGeneratorHook(schema *ast.Schema) generator.SchemaHook
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.