@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
35 lines (22 loc) • 889 B
Markdown
lang: en
title: 'API docs: repository.normalizekey'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.normalizekey.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/repository](./repository.md) > [normalizeKey](./repository.normalizekey.md)
## normalizeKey() function
Workaround for MongoDB, where the connector returns ObjectID values even for properties configured with "type: string".
<b>Signature:</b>
```typescript
export declare function normalizeKey(rawKey: unknown): unknown;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| rawKey | unknown | |
<b>Returns:</b>
unknown