@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
34 lines (22 loc) • 1.02 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
<b>Signature:</b>
```typescript
exportGraphQLSchema(outFile?: string, log?: (message?: any, ...optionalParams: any[]) => void): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| outFile | string | |
| log | (message?: any, ...optionalParams: any\[\]) => void | |
<b>Returns:</b>
Promise<void>