Documentation
¶
Index ¶
- Variables
- func AfterSave[T any](params graphql.ResolveParams) []func(T) error
- func GetID(input map[string]interface{}) int
- func GetInput(input *graphql.InputObject) *graphql.InputObject
- func NewWhereInput(name string) *graphql.InputObject
- func NewWhereInputForOutput(name string, output graphql.Output) *graphql.InputObject
- type Config
- type Extension
- type ExtensionField
- type Field
- type GraphQLField
- type Query
- type SchemaTypeFactory
- type TypeResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtensionStore = []Extension{}
View Source
var NodeType = graphql.NewInterface(graphql.InterfaceConfig{ Name: "Node", Fields: graphql.Fields{ "id": &graphql.Field{ Type: graphql.NewNonNull(graphql.ID), }, }, })
View Source
var Types map[string]TypeResolver = make(map[string]TypeResolver)
Functions ¶
func GetInput ¶
func GetInput(input *graphql.InputObject) *graphql.InputObject
func NewWhereInput ¶
func NewWhereInput(name string) *graphql.InputObject
func NewWhereInputForOutput ¶
func NewWhereInputForOutput(name string, output graphql.Output) *graphql.InputObject
Types ¶
type Extension ¶
type Extension struct { Inputs []string Fields []ExtensionField Resolve func(graphql.ResolveParams, any) error }
type ExtensionField ¶
type ExtensionField struct { Name string Field *graphql.InputObjectFieldConfig }
type Field ¶
type Field struct { DB any `yaml:"db"` Fieldconfig any `yaml:"fieldconfig"` GraphQL map[string]GraphQLField `yml:"graphQL"` }
type GraphQLField ¶
type SchemaTypeFactory ¶
type SchemaTypeFactory struct{}
func (*SchemaTypeFactory) ApplyFilter ¶
func (f *SchemaTypeFactory) ApplyFilter(s *sql.Selector, filter map[string]interface{})
func (*SchemaTypeFactory) CreateFilter ¶
func (f *SchemaTypeFactory) CreateFilter()
Click to show internal directories.
Click to hide internal directories.