type FieldFunc func(ctx context.Context, next graphql.Resolver) (res interface{}, err error)
func (f FieldFunc) ExtensionName() string
func (f FieldFunc) InterceptField(ctx context.Context, next graphql.Resolver) (res interface{}, err error)
func (f FieldFunc) Validate(schema graphql.ExecutableSchema) error
type OperationFunc func(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
func (r OperationFunc) ExtensionName() string
func (r OperationFunc) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
func (r OperationFunc) Validate(schema graphql.ExecutableSchema) error
type ResponseFunc func(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
func (r ResponseFunc) ExtensionName() string
func (r ResponseFunc) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
func (r ResponseFunc) Validate(schema graphql.ExecutableSchema) error
type Server struct {
// contains filtered or unexported fields
}
func New(es graphql.ExecutableSchema) *Server
func NewDefaultServer(es graphql.ExecutableSchema) *Server
func (s *Server) AddTransport(transport graphql.Transport)
func (s *Server) AroundFields(f graphql.FieldMiddleware)
AroundFields is a convenience method for creating an extension that only implements field middleware
func (s *Server) AroundOperations(f graphql.OperationMiddleware)
AroundOperations is a convenience method for creating an extension that only implements operation middleware
func (s *Server) AroundResponses(f graphql.ResponseMiddleware)
AroundResponses is a convenience method for creating an extension that only implements response middleware
func (s *Server) AroundRootFields(f graphql.RootFieldMiddleware)
AroundRootFields is a convenience method for creating an extension that only implements field middleware
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (s *Server) SetErrorPresenter(f graphql.ErrorPresenterFunc)
func (s *Server) SetQueryCache(cache graphql.Cache)
func (s *Server) SetRecoverFunc(f graphql.RecoverFunc)
func (s *Server) Use(extension graphql.HandlerExtension)
Name | Synopsis |
---|---|
.. | |
apollofederatedtracingv1 | |
generated | |
apollotracing | |
debug | |
extension | |
lru | |
testserver | |
transport |