Page Contents
Home > @loopback/repository > normalizeKey
normalizeKey() function
Workaround for MongoDB, where the connector returns ObjectID values even for properties configured with “type: string”.
Signature:
export declare function normalizeKey(rawKey: unknown): unknown;
Parameters
Parameter | Type | Description |
---|---|---|
rawKey | unknown |
Returns:
unknown