---
lang: en
title: 'API docs: rest.defaultsequence.invokemiddleware'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.defaultsequence.invokemiddleware.html
---

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

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [DefaultSequence](./rest.defaultsequence.md) &gt; [invokeMiddleware](./rest.defaultsequence.invokemiddleware.md)

## DefaultSequence.invokeMiddleware property

Optional invoker for registered middleware in a chain. To be injected via SequenceActions.INVOKE\_MIDDLEWARE.

<b>Signature:</b>

```typescript
protected invokeMiddleware: InvokeMiddleware;
```

