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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Context](./context.context.md) &gt; [getConfigSync](./context.context.getconfigsync.md)

## Context.getConfigSync() method

Resolve configuration synchronously for the binding by key

**Signature:**

```typescript
getConfigSync<ConfigValueType>(key: BindingAddress, propertyPath?: string, resolutionOptions?: ResolutionOptions): ConfigValueType | undefined;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  key | [BindingAddress](./context.bindingaddress.md) | Binding key |
|  propertyPath | string | _(Optional)_ Property path for the option. For example, <code>x.y</code> requests for <code>config.x.y</code>. If not set, the <code>config</code> object will be returned. |
|  resolutionOptions | [ResolutionOptions](./context.resolutionoptions.md) | _(Optional)_ Options for the resolution. |

**Returns:**

ConfigValueType \| undefined


