Documentation ¶
Overview ¶
You can use the "packr clean" command to clean up this, and any other packr generated files.
Index ¶
Constants ¶
View Source
const ( ModelFileName = "/models.go" FunctionFileName = "/generated.go" EnumFileName = "/enums.go" SchemaName = "/dgraph_schema.graphql" CustomsFileName = "/customs.go" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnumResult ¶
type EnumResult struct {
Vals []EnumValues
}
type EnumValues ¶
type Field ¶
type Field struct { //For DB name. Tag string //This include omitempty for instance. it is related to the tag. WrittenTag string //Name for the field. Name string //What type is this field? String etc. Type string //like []*string. Used in templates. TypeLabel string //did this come from the field or from the interface? FromInterface bool Nosave bool Directives []*common.Directive Nofield bool //For templates. Parent string IsArray bool // contains filtered or unexported fields }
Field represents the parsed graphQL field alongside all definitions needed for generation.
type Generator ¶
type Generator struct { //To set states from certain function States map[string]interface{} // contains filtered or unexported fields }
Generator handles the state of the entire generation.
type ModelCreator ¶
type ModelCreator struct{}
Click to show internal directories.
Click to hide internal directories.