@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
79 lines (40 loc) • 1.3 kB
Markdown
---
lang: en
title: 'API docs: graphql.graphqlserver.exportgraphqlschema'
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.exportgraphqlschema.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/graphql](./graphql.md) > [GraphQLServer](./graphql.graphqlserver.md) > [exportGraphQLSchema](./graphql.graphqlserver.exportgraphqlschema.md)
## GraphQLServer.exportGraphQLSchema() method
**Signature:**
```typescript
exportGraphQLSchema(outFile?: string, log?: (message?: any, ...optionalParams: any[]) => void): Promise<void>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
outFile
</td><td markdown="1">
string
</td><td markdown="1">
_(Optional)_
</td></tr>
<tr><td markdown="1">
log
</td><td markdown="1">
(message?: any, ...optionalParams: any\[\]) => void
</td><td markdown="1">
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Promise<void>