You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAICT, lb4 model does allow users to create a primary key property with a different name than id.
Example prompts & answers to use pk instead of id:
Model Product will be created in src/models/product.model.ts
Let's add a property to Product
Enter an empty property name when done
? Enter the property name: pk
? Property type: string
? Is pk the ID property? Yes
? Is it required?: No
? Default value [leave blank for none]:
Now that #3297 is landed, the id property is excluded when making a POST request. However, the Controller and HasMany templates assume it's always called id.
Acceptance criteria
Modify Controller and HasMany templates to include support for custom primary keys
The text was updated successfully, but these errors were encountered:
Cross-posting from #3297 (comment):
Now that #3297 is landed, the
id
property is excluded when making a POST request. However, the Controller and HasMany templates assume it's always calledid
.Acceptance criteria
The text was updated successfully, but these errors were encountered: