MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / convertJsonToJSValue

Function convertJsonToJSValue

packages/core/src/platforms/Platform.ts:632–634  ·  view source on GitHub ↗

Converts a database JSON value to its JS representation.

(value: unknown, context?: TransformContext)

Source from the content-addressed store, hash-verified

630
631 /** Converts a database JSON value to its JS representation. */
632 convertJsonToJSValue(value: unknown, context?: TransformContext): unknown {
633 return parseJsonSafe(value);
634 }
635
636 convertDateToJSValue(value: string | Date): string {
637 return value as string;

Callers

nothing calls this directly

Calls 1

parseJsonSafeFunction · 0.85

Tested by

no test coverage detected