findModelBacklinks
Function: findModelBacklinks()
findModelBacklinks(
target,options?):AsyncGenerator<ModelBacklink>
Defined in: packages/core/src/models/polymorphic.ts:67
Find readable objects whose polymorphic links point to a readable target. This portable implementation scans source models with polymorphic-link metadata, so it works without a store specific nested-array operator. Both identity fields must match the SAME array element. Stores may index these fields for application-specific optimized queries. No cascade or cleanup is performed.
Parameters
target
Storable<any, any> | ModelLinkData
model instance or serialized reference
options?
ModelBacklinkOptions = {}
caller, source restrictions and scan bounds
Returns
AsyncGenerator<ModelBacklink>
Yields
one entry per matching source attribute; throws rather than silently truncating at the scan budget