Versions in this module Expand all Collapse all v1 v1.1.0 Oct 18, 2024 v1.0.0 Sep 28, 2024 Changes in this version + type ID string + func (ID) ImplementsGraphQLType(name string) bool + func (id *ID) UnmarshalGraphQL(input interface{}) error + func (id ID) MarshalJSON() ([]byte, error) + type NullBool struct + Set bool + Value *bool + func (NullBool) ImplementsGraphQLType(name string) bool + func (s *NullBool) Nullable() + func (s *NullBool) UnmarshalGraphQL(input interface{}) error + type NullFloat struct + Set bool + Value *float64 + func (NullFloat) ImplementsGraphQLType(name string) bool + func (s *NullFloat) Nullable() + func (s *NullFloat) UnmarshalGraphQL(input interface{}) error + type NullID struct + Set bool + Value *ID + func (NullID) ImplementsGraphQLType(name string) bool + func (s *NullID) Nullable() + func (s *NullID) UnmarshalGraphQL(input interface{}) error + type NullInt struct + Set bool + Value *int32 + func (NullInt) ImplementsGraphQLType(name string) bool + func (s *NullInt) Nullable() + func (s *NullInt) UnmarshalGraphQL(input interface{}) error + type NullString struct + Set bool + Value *string + func (NullString) ImplementsGraphQLType(name string) bool + func (s *NullString) Nullable() + func (s *NullString) UnmarshalGraphQL(input interface{}) error + type NullTime struct + Set bool + Value *Time + func (NullTime) ImplementsGraphQLType(name string) bool + func (s *NullTime) Nullable() + func (s *NullTime) UnmarshalGraphQL(input interface{}) error + type Response struct + Data json.RawMessage + Errors []*errors.QueryError + Extensions map[string]interface{} + type Schema struct + func MustParseSchema(schemaString string, resolver interface{}, opts ...SchemaOpt) *Schema + func ParseSchema(schemaString string, resolver interface{}, opts ...SchemaOpt) (*Schema, error) + func (s *Schema) AST() *ast.Schema + func (s *Schema) ASTSchema() *ast.Schema + func (s *Schema) Exec(ctx context.Context, queryString string, operationName string, ...) *Response + func (s *Schema) Inspect() *introspection.Schema + func (s *Schema) Subscribe(ctx context.Context, queryString string, operationName string, ...) (<-chan interface{}, error) + func (s *Schema) ToJSON() ([]byte, error) + func (s *Schema) Validate(queryString string) []*errors.QueryError + func (s *Schema) ValidateWithVariables(queryString string, variables map[string]interface{}) []*errors.QueryError + type SchemaOpt func(*Schema) + func Directives(ds ...directives.Directive) SchemaOpt + func DisableIntrospection() SchemaOpt + func Logger(logger log.Logger) SchemaOpt + func MaxDepth(n int) SchemaOpt + func MaxParallelism(n int) SchemaOpt + func MaxQueryLength(n int) SchemaOpt + func PanicHandler(panicHandler errors.PanicHandler) SchemaOpt + func RestrictIntrospection(fn func(ctx context.Context) bool) SchemaOpt + func SubscribeResolverTimeout(timeout time.Duration) SchemaOpt + func Tracer(t tracer.Tracer) SchemaOpt + func UseFieldResolvers() SchemaOpt + func UseStringDescriptions() SchemaOpt + func ValidationTracer(tracer tracer.LegacyValidationTracer) SchemaOpt + type Time struct + func (Time) ImplementsGraphQLType(name string) bool + func (t *Time) UnmarshalGraphQL(input interface{}) error + func (t Time) MarshalJSON() ([]byte, error)