resolveReferences

Function

Resolve all $use references in an object graph. The $use syntax is relative to an entire object so the developer must ensure they resolve the references on the same graph they were defined on. Put another way, you can't resolve references on a subset of an object graph.

  • resolveReferences(obj: Record<stringany>, ctx: Record<stringany>) : Record<stringany>

Parameters

Parameter Type Default Notes
obj Required Record<stringany>
ctx Optional Record<stringany>

Returns

Record<stringany>

Function defined in common/src/objects/resolveReferences.ts:17