---
lang: en
title: 'API docs: graphql.graphqlserveroptions'
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.graphqlserveroptions.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/graphql](./graphql.md) &gt; [GraphQLServerOptions](./graphql.graphqlserveroptions.md)

## GraphQLServerOptions interface

Options for GraphQL server

**Signature:**

```typescript
export interface GraphQLServerOptions<TContext extends BaseContext = BaseContext> extends HttpOptions 
```
**Extends:** [HttpOptions](./http-server.httpoptions.md)

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[apollo?](./graphql.graphqlserveroptions.apollo.md)


</td><td>


</td><td>

Partial&lt;ApolloServerOptionsWithStaticSchema&lt;TContext&gt;&gt;


</td><td>

_(Optional)_ ApolloServerExpress related configuration


</td></tr>
<tr><td>

[asMiddlewareOnly?](./graphql.graphqlserveroptions.asmiddlewareonly.md)


</td><td>


</td><td>

boolean


</td><td>

_(Optional)_ Use as a middleware for RestServer instead of a standalone server


</td></tr>
<tr><td>

[expressSettings?](./graphql.graphqlserveroptions.expresssettings.md)


</td><td>


</td><td>

Record&lt;string, unknown&gt;


</td><td>

_(Optional)_ Express settings


</td></tr>
<tr><td>

[graphQLPath?](./graphql.graphqlserveroptions.graphqlpath.md)


</td><td>


</td><td>

string


</td><td>

_(Optional)_


</td></tr>
<tr><td>

[middlewareOptions?](./graphql.graphqlserveroptions.middlewareoptions.md)


</td><td>


</td><td>

Record&lt;string, unknown&gt;


</td><td>

_(Optional)_ Middleware options for GraphQL


</td></tr>
<tr><td>

[validate?](./graphql.graphqlserveroptions.validate.md)


</td><td>


</td><td>

boolean


</td><td>

_(Optional)_


</td></tr>
</tbody></table>


