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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [MetadataAccessor](./metadata.metadataaccessor.md) &gt; [create](./metadata.metadataaccessor.create.md)

## MetadataAccessor.create() method

Create a strongly-typed metadata accessor

**Signature:**

```typescript
static create<V, DT extends DecoratorType>(key: string): MetadataAccessor<V, DT>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

key


</td><td markdown="1">

string


</td><td markdown="1">

The metadata key


</td></tr>
</tbody></table>

**Returns:**

[MetadataAccessor](./metadata.metadataaccessor.md)<!-- -->&lt;V, DT&gt;


