@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
24 lines (16 loc) • 812 B
Markdown
lang: en
title: 'API docs: graphql.graphqlserveroptions.asmiddlewareonly'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/extensions/graphql
permalink: /doc/en/lb4/apidocs.graphql.graphqlserveroptions.asmiddlewareonly.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/graphql](./graphql.md) > [GraphQLServerOptions](./graphql.graphqlserveroptions.md) > [asMiddlewareOnly](./graphql.graphqlserveroptions.asmiddlewareonly.md)
## GraphQLServerOptions.asMiddlewareOnly property
Use as a middleware for RestServer instead of a standalone server
<b>Signature:</b>
```typescript
asMiddlewareOnly?: boolean;
```