Documentation ¶
Index ¶
- Constants
- func GraphQLName(cfg Config, name string) string
- type Config
- type DummyConfig
- func (cfg *DummyConfig) DebugMode() bool
- func (cfg *DummyConfig) DefaultGraphQLFieldFormat() GraphQLFieldFormat
- func (cfg *DummyConfig) DefaultGraphQLMutationName() GraphQLMutationName
- func (cfg DummyConfig) DummyWrite() bool
- func (cfg DummyConfig) FieldPrivacyEvaluated() FieldPrivacyEvaluated
- func (cfg DummyConfig) GetAssocEdgePath() *ImportedObject
- func (cfg *DummyConfig) GetRootPathToConfigs() string
- func (cfg DummyConfig) GetTemplatizedViewer() *ImportedObject
- type FieldPrivacyEvaluated
- type GraphQLFieldFormat
- type GraphQLMutationName
- type ImportedObject
Constants ¶
View Source
const DefaultGraphQLMutationName = NounVerb
Variables ¶
This section is empty.
Functions ¶
func GraphQLName ¶
Types ¶
type Config ¶
type Config interface { DefaultGraphQLMutationName() GraphQLMutationName DefaultGraphQLFieldFormat() GraphQLFieldFormat FieldPrivacyEvaluated() FieldPrivacyEvaluated GetRootPathToConfigs() string DebugMode() bool // doesn't actually writes the files, just keeps track of which files were going to be written // used to detect dangling files... DummyWrite() bool GetTemplatizedViewer() *ImportedObject GetAssocEdgePath() *ImportedObject }
this file exists to simplify circular dependencies
type DummyConfig ¶
type DummyConfig struct { }
DummyConfig exists for tests/legacy paths which need Configs and don't want to create the production one
func (*DummyConfig) DebugMode ¶
func (cfg *DummyConfig) DebugMode() bool
func (*DummyConfig) DefaultGraphQLFieldFormat ¶
func (cfg *DummyConfig) DefaultGraphQLFieldFormat() GraphQLFieldFormat
func (*DummyConfig) DefaultGraphQLMutationName ¶
func (cfg *DummyConfig) DefaultGraphQLMutationName() GraphQLMutationName
func (DummyConfig) DummyWrite ¶ added in v0.1.0
func (cfg DummyConfig) DummyWrite() bool
func (DummyConfig) FieldPrivacyEvaluated ¶ added in v0.1.0
func (cfg DummyConfig) FieldPrivacyEvaluated() FieldPrivacyEvaluated
func (DummyConfig) GetAssocEdgePath ¶ added in v0.1.0
func (cfg DummyConfig) GetAssocEdgePath() *ImportedObject
func (*DummyConfig) GetRootPathToConfigs ¶
func (cfg *DummyConfig) GetRootPathToConfigs() string
func (DummyConfig) GetTemplatizedViewer ¶ added in v0.1.0
func (cfg DummyConfig) GetTemplatizedViewer() *ImportedObject
type FieldPrivacyEvaluated ¶ added in v0.1.0
type FieldPrivacyEvaluated string
const ( AtEntLoad FieldPrivacyEvaluated = "at_ent_load" OnDemand FieldPrivacyEvaluated = "on_demand" )
type GraphQLFieldFormat ¶
type GraphQLFieldFormat string
const ( LowerCamelCase GraphQLFieldFormat = "lowerCamel" SnakeCase GraphQLFieldFormat = "snake_case" )
type GraphQLMutationName ¶
type GraphQLMutationName string
const ( // e.g. userCreate. default NounVerb GraphQLMutationName = "NounVerb" // e.g. createUser VerbNoun GraphQLMutationName = "VerbNoun" )
type ImportedObject ¶ added in v0.1.0
type ImportedObject struct { Path string `yaml:"path"` Name string `yaml:"name"` Alias string `yaml:"alias"` }
func (*ImportedObject) Clone ¶ added in v0.1.0
func (cfg *ImportedObject) Clone() *ImportedObject
func (*ImportedObject) GetImport ¶ added in v0.1.0
func (cfg *ImportedObject) GetImport() string
func (*ImportedObject) GetImportPath ¶ added in v0.1.0
func (cfg *ImportedObject) GetImportPath() *tsimport.ImportPath
Click to show internal directories.
Click to hide internal directories.