-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
RelationsModel relations (has many, etc.)Model relations (has many, etc.)developer-experienceIssues affecting ease of use and overall experience of LB usersIssues affecting ease of use and overall experience of LB usersfeaturestale
Description
Description / Steps to reproduce / Feature proposal
Once #2960 is landed, lb4 model will add a generic empty {ModelName}Relations interface to the model class file.
Cross-posting from #2960 (comment):
Entries for individual relations would be added to {ModelName}Relations either manually by the application developer or by
lb4 relationcommand.
Current Behaviour
lb4 model generates empty interface, e.g.:
export interface TodoRelations {}lb4 relation does not add any navigational properties to this empty interface.
Expected Behaviour
- Enhance
lb4 relationto populate{ModelName}Relations
Example:
export interface TodoRelations {
todoList?: TodoListWithRelations;
}export interface TodoListRelations {
todos?: TodoWithRelations[];
image?: TodoListImageWithRelations;
}Metadata
Metadata
Assignees
Labels
RelationsModel relations (has many, etc.)Model relations (has many, etc.)developer-experienceIssues affecting ease of use and overall experience of LB usersIssues affecting ease of use and overall experience of LB usersfeaturestale