@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
54 lines (38 loc) • 2.11 kB
Markdown
---
lang: en
title: 'API docs: graphql.graphqlserver'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/graphql
permalink: /doc/en/lb4/apidocs.graphql.graphqlserver.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/graphql](./graphql.md) > [GraphQLServer](./graphql.graphqlserver.md)
## GraphQLServer class
GraphQL Server
<b>Signature:</b>
```typescript
export declare class GraphQLServer extends Context implements Server
```
<b>Extends:</b> [Context](./context.context.md)
<b>Implements:</b> [Server](./core.server.md)
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(options, parent)](./graphql.graphqlserver._constructor_.md) | | Constructs a new instance of the <code>GraphQLServer</code> class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [expressApp](./graphql.graphqlserver.expressapp.md) | | express.Application | |
| [httpServer?](./graphql.graphqlserver.httpserver.md) | | [HttpServer](./http-server.httpserver.md) | <i>(Optional)</i> |
| [listening](./graphql.graphqlserver.listening.md) | | boolean | Is the GraphQL listening |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [exportGraphQLSchema(outFile, log)](./graphql.graphqlserver.exportgraphqlschema.md) | | |
| [getMiddlewareList()](./graphql.graphqlserver.getmiddlewarelist.md) | | Get a list of middleware |
| [getResolverClasses()](./graphql.graphqlserver.getresolverclasses.md) | | Get a list of resolver classes |
| [middleware(middleware)](./graphql.graphqlserver.middleware.md) | | Register a GraphQL middleware |
| [resolver(resolverClass, nameOrOptions)](./graphql.graphqlserver.resolver.md) | | Register a GraphQL resolver class |
| [start()](./graphql.graphqlserver.start.md) | | |
| [stop()](./graphql.graphqlserver.stop.md) | | |