Page Contents

Home > @loopback/graphql > GraphQLServer

GraphQLServer class

GraphQL Server

Signature:

export declare class GraphQLServer extends Context implements Server 

Extends: Context

Implements: Server

Constructors

Constructor Modifiers Description
(constructor)(options, parent)   Constructs a new instance of the GraphQLServer class

Properties

Property Modifiers Type Description
expressApp readonly express.Application  
httpServer? readonly HttpServer (Optional)
listening readonly boolean Is the GraphQL listening

Methods

Method Modifiers Description
exportGraphQLSchema(outFile, log)    
getMiddlewareList()   Get a list of middleware
getResolverClasses()   Get a list of resolver classes
middleware(middleware)   Register a GraphQL middleware
resolver(resolverClass, nameOrOptions)   Register a GraphQL resolver class
start()    
stop()