@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
35 lines (24 loc) • 1.8 kB
Markdown
---
lang: en
title: 'API docs: express.invokemiddlewareoptions'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/express
permalink: /doc/en/lb4/apidocs.express.invokemiddlewareoptions.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/express](./express.md) > [InvokeMiddlewareOptions](./express.invokemiddlewareoptions.md)
## InvokeMiddlewareOptions interface
Options for `InvokeMiddleware`
<b>Signature:</b>
```typescript
export interface InvokeMiddlewareOptions
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [chain?](./express.invokemiddlewareoptions.chain.md) | string | <i>(Optional)</i> Name of the extension point. Default to the <code>extensionPoint</code> tag value from the binding |
| [middlewareList?](./express.invokemiddlewareoptions.middlewarelist.md) | [MiddlewareOrKey](./express.middlewareorkey.md)<!-- -->\[\] | <i>(Optional)</i> Pre-built middleware list. If set, the list will be used to create the middleware chain without discovering again within the context. |
| [next?](./express.invokemiddlewareoptions.next.md) | [Next](./context.next.md) | <i>(Optional)</i> Optional next handler |
| [orderedGroups?](./express.invokemiddlewareoptions.orderedgroups.md) | string\[\] | <i>(Optional)</i> An array of group names to denote the order of execution, such as <code>['cors', 'caching', 'rate-limiting']</code>. |
| [validate?](./express.invokemiddlewareoptions.validate.md) | (groups: string\[\]) => void | <i>(Optional)</i> An optional function to validate the sorted groups before invoking the middleware chain |