---
lang: en
title: 'API docs: express.middlewarebindingoptions'
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.middlewarebindingoptions.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/express](./express.md) &gt; [MiddlewareBindingOptions](./express.middlewarebindingoptions.md)

## MiddlewareBindingOptions interface

Options to bind middleware as a request context based interceptor within an `InvokeMiddleware` action of the sequence.

<b>Signature:</b>

```typescript
export interface MiddlewareBindingOptions extends BaseMiddlewareBindingOptions<MiddlewareContext> 
```
<b>Extends:</b> [BaseMiddlewareBindingOptions](./express.basemiddlewarebindingoptions.md)<!-- -->&lt;[MiddlewareContext](./express.middlewarecontext.md)<!-- -->&gt;

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [chain?](./express.middlewarebindingoptions.chain.md) | string | <i>(Optional)</i> Name of the middleware extension point. Default to <code>DEFAULT_MIDDLEWARE_CHAIN</code>. |
|  [downstreamGroups?](./express.middlewarebindingoptions.downstreamgroups.md) | string \| string\[\] | <i>(Optional)</i> An array of group names for downstream middleware in the cascading order.<!-- -->For example, the <code>sendResponse</code> depends on <code>invokeMethod</code> for response processing. The <code>downstreamGroups</code> for <code>sendResponse</code> should be <code>['invokeMethod']</code>. The order of groups in the array does not matter. |
|  [upstreamGroups?](./express.middlewarebindingoptions.upstreamgroups.md) | string \| string\[\] | <i>(Optional)</i> An array of group names for upstream middleware in the cascading order.<!-- -->For example, the <code>invokeMethod</code> depends on <code>parseParams</code> for request processing. The <code>upstreamGroups</code> for <code>invokeMethod</code> should be <code>['parseParams']</code>. The order of groups in the array does not matter. |


