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

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

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [ResolutionSession](./context.resolutionsession.md) &gt; [describeInjection](./context.resolutionsession.describeinjection.md)

## ResolutionSession.describeInjection() method

Describe the injection for debugging purpose

<b>Signature:</b>

```typescript
static describeInjection(injection?: Readonly<Injection>): {
        targetName?: undefined;
        bindingSelector?: undefined;
        metadata?: undefined;
    } | {
        targetName: string;
        bindingSelector: import("./binding-filter").BindingSelector<any>;
        metadata: object;
    };
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  injection | <code>Readonly&lt;Injection&gt;</code> | Injection object |

<b>Returns:</b>

`{
        targetName?: undefined;
        bindingSelector?: undefined;
        metadata?: undefined;
    } | {
        targetName: string;
        bindingSelector: import("./binding-filter").BindingSelector<any>;
        metadata: object;
    }`


