buildRelations
Function: buildRelations()
buildRelations(
ctx,sf,cls,resolveModelId):ModelRelations
Defined in: packages/content-mapper/src/module-discovery.ts:688
Build a model's Relations entry.
Relation kinds are recognised by the written type name — ModelParent,
ModelRelated, the ModelLink* family — and the referenced model is
resolved to its namespaced identifier so the graph is expressed in module
terms rather than class names.
Parameters
ctx
analysis context
sf
any
file declaring the class
cls
any
the class declaration
resolveModelId
(className) => string | undefined
maps a class name to its namespaced identifier
Returns
the relations, omitting empty groups