@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
77 lines (39 loc) • 1.27 kB
Markdown
---
lang: en
title: 'API docs: graphql.graphqlserver._constructor_'
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._constructor_.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/graphql](./graphql.md) > [GraphQLServer](./graphql.graphqlserver.md) > [(constructor)](./graphql.graphqlserver._constructor_.md)
## GraphQLServer.(constructor)
Constructs a new instance of the `GraphQLServer` class
**Signature:**
```typescript
constructor(options?: GraphQLServerOptions, parent?: Context);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
options
</td><td markdown="1">
[GraphQLServerOptions](./graphql.graphqlserveroptions.md)
</td><td markdown="1">
_(Optional)_
</td></tr>
<tr><td markdown="1">
parent
</td><td markdown="1">
[Context](./context.context.md)
</td><td markdown="1">
_(Optional)_
</td></tr>
</tbody></table>