@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
160 lines (74 loc) • 2.19 kB
Markdown
---
lang: en
title: 'API docs: context-explorer.contextbinding'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/context-explorer
permalink: /doc/en/lb4/apidocs.context-explorer.contextbinding.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context-explorer](./context-explorer.md) > [ContextBinding](./context-explorer.contextbinding.md)
## ContextBinding class
A wrapper class for context, binding, and its level in the chain
**Signature:**
```typescript
export declare class ContextBinding
```
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[(constructor)(context, binding, level)](./context-explorer.contextbinding._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Constructs a new instance of the `ContextBinding` class
</td></tr>
</tbody></table>
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[binding](./context-explorer.contextbinding.binding.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
[JSONObject](./context.jsonobject.md)
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[context](./context-explorer.contextbinding.context.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
[JSONObject](./context.jsonobject.md)
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[id](./context-explorer.contextbinding.id.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
string
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[level](./context-explorer.contextbinding.level.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
number
</td><td markdown="1">
</td></tr>
</tbody></table>