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   express.Application  
httpServer   HttpServer  
listening   boolean Is the GraphQL listening

Methods

Method Modifiers Description
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()