---
lang: en
title: 'API docs: context.resolveinjectedarguments'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.context.resolveinjectedarguments.html
---

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

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [resolveInjectedArguments](./context.resolveinjectedarguments.md)

## resolveInjectedArguments() function

Given a function with arguments decorated with `@inject`<!-- -->, return the list of arguments resolved using the values bound in `ctx`<!-- -->.

The function returns an argument array when all dependencies were resolved synchronously, or a Promise otherwise.

<b>Signature:</b>

```typescript
export declare function resolveInjectedArguments(target: object, method: string, ctx: Context, session?: ResolutionSession, nonInjectedArgs?: any[]): ValueOrPromise<BoundValue[]>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  target | <code>object</code> | The class for constructor injection or prototype for method injection |
|  method | <code>string</code> | The method name. If set to '', the constructor will be used. |
|  ctx | <code>Context</code> | The context containing values for <code>@inject</code> resolution |
|  session | <code>ResolutionSession</code> | Optional session for binding and dependency resolution |
|  nonInjectedArgs | <code>any[]</code> | Optional array of args for non-injected parameters |

<b>Returns:</b>

`ValueOrPromise<BoundValue[]>`


