[CLI] lb4 repository
relation support
#1628
Labels
CLI
developer-experience
Issues affecting ease of use and overall experience of LB users
Relations
Model relations (has many, etc.)
Repository
Issues related to @loopback/repository package
stale
Description / Steps to reproduce / Feature proposal
If a user defines two models (TodoList, Todo) and defines a relation
TodoList hasMany Todo
then we should be able to recognize this during repository generation.This isn't applicable if a repository for a model was defined before a relation was added to the model.
Acceptance Criteria
@hasMany
,@belongsTo
). For each relational property:Todo
model so we can power thehasMany
relation propertytodos
. Provide an option of available repositories -- select a default based on naming convention, with the last option being toskip
this (In which case we don't add any relation stuff to the repository).The text was updated successfully, but these errors were encountered: