Replies: 1 comment
-
Have you tried swapping that ID attribute with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I have a problem with creating a model and repository without ID property in Loopback 4.
Most models have an ID attribute, so I can create a repository extends from the
DefaultCrudRepository
class. This class required an ID attribute. So, it works only for any models that have an ID attribute.But, in some cases, I have a model without an ID attribute and I need to create a repository for this model. In this case, I have no idea about what the class of repository that I need to extend is.
Does Anybody have experience with loopback 4 to help me? Thank all.
Beta Was this translation helpful? Give feedback.
All reactions