Documentation ¶
Index ¶
- func ExecuteQuery(schema graphql.Schema, query string) (r *graphql.Result, err error)
- func GetSchema(f generic.Factory, serveFunc types.ServeFunc, rn *graph.RootNode) (schema graphql.Schema, err error)
- func MustGetHandler(rn *graph.RootNode, f generic.Factory, serverFunc types.ServeFunc) (h http.Handler)
- func TestGraphql(t *testing.T)
- func TypeToEnum(en *graph.EnumNode) (e *graphql.Enum)
- func TypeToInputObject(sCtx SchemaContext, tn *graph.TypeNode) (i *graphql.InputObject)
- func TypeToObject(sCtx SchemaContext, tn *graph.TypeNode) (i *graphql.Object)
- type SchemaContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteQuery ¶
func MustGetHandler ¶
func TestGraphql ¶
func TypeToInputObject ¶
func TypeToInputObject(sCtx SchemaContext, tn *graph.TypeNode) (i *graphql.InputObject)
func TypeToObject ¶
func TypeToObject(sCtx SchemaContext, tn *graph.TypeNode) (i *graphql.Object)
Types ¶
type SchemaContext ¶
type SchemaContext struct {
// contains filtered or unexported fields
}
func (SchemaContext) MustGetEnum ¶
func (c SchemaContext) MustGetEnum(name string) *graphql.Enum
func (SchemaContext) MustGetInputObject ¶
func (c SchemaContext) MustGetInputObject(name string) *graphql.InputObject
func (SchemaContext) MustGetObject ¶
func (c SchemaContext) MustGetObject(name string) *graphql.Object
Click to show internal directories.
Click to hide internal directories.