Documentation ¶
Index ¶
Constants ¶
View Source
const ( ID = "id" One2One = "one2one" One2Many = "one2many" Many2Many = "many2many" UniqueIndex = "unique" PrimaryIndex = "primary" MultiIndex = "index" Integer = "integer" Float = "float" String = "string" Boolean = "boolean" Timestamp = "timestamp" Link = "link" Domain = "domain" Create = "create" Update = "update" Delete = "delete" )
Variables ¶
This section is empty.
Functions ¶
func ParseIndex ¶
Types ¶
type Config ¶
type Config struct { Generate []string `yaml:"generate"` Models []Model `yaml:"models"` Types []Type `yaml:"custom_types"` GraphQL *GraphQLModule `yaml:"graphql,omitempty"` Resolvers *ResolversModule `yaml:"resolvers,omitempty"` SQL *SQLModule `yaml:"sql,omitempty"` BaseImport string }
func LoadConfigAtPath ¶
func (Config) FindModelByName ¶
func (Config) ShouldGenerate ¶
type Field ¶
type Field struct { Name string `yaml:"name"` Internal string `yaml:"internal,omitempty"` Description string `yaml:"description,omitempty"` Expose *bool `yaml:"expose,omitempty"` Type string `yaml:"type"` Indexes []string `yaml:"indexes,omitempty"` Deprecated string `yaml:"deprecated,omitempty"` Relationship *Relationship `yaml:"relationship,omitempty"` }
type GraphQLModule ¶
type GraphQLModule struct {
Package string `yaml:"package"`
}
type Index ¶
func (Index) NameWithIds ¶
type Model ¶
type Model struct { Name string `yaml:"name"` Plural string `yaml:"plural"` Type string `yaml:"type"` Internal string `yaml:"internal,omitempty"` Description string `yaml:"description,omitempty"` Fields []Field `yaml:"fields"` Deprecated string `yaml:"deprecated,omitempty"` Mutations []Mutation `yaml:"mutations,omitempty"` }
func (Model) FindFieldByInternal ¶
func (Model) FindFieldByName ¶
type Relationship ¶
type ResolversModule ¶
type ResolversModule struct {
Package string `yaml:"package"`
}
Click to show internal directories.
Click to hide internal directories.