Type alias ResolveRelationship<Bag, RelationshipShape>

ResolveRelationship<Bag, RelationshipShape>: DependentLazyLoaderOpIsAvailable<Bag, RelationshipShape> extends true
    ? LazyLoader<RelationshipShape["valueRequired"] extends true
        ? Bag[RelationshipShape["relatedModel"]]["type"]
        : Bag[RelationshipShape["relatedModel"]]["type"] | null, RelationshipShape["array"]>
    : never

Resolves to never if the related model has disabled list or get ops for hasOne/hasMany or belongsTo respectively

Type Parameters