-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Description / Steps to reproduce
loopback 4
node 10.14.2
npm 6.4.1
win10
I have a pre existing mongo db database containing all lower case collections. The scaffolding used in tutorial examples assumes a Proper Case collection. I would like to use a lowercase collection name, from Todo > todo
Current Behavior
The collection appearas as Todo in mongo following the example given
Expected Behavior
I want to the model, controller and repository use the lowercase name of todo and not Todo..
Acceptance Criteria (Added by LoopBack team)
- Add content on how to configure the
@modeldecorator when the model name is different from the table name - Add content on how to configure the
@propertydecorator when the property name is different from the column name.
Note: This sample repo https://github.com/dhmlau/loopback4-example-todo-customized can be used as a reference.
Things to be discussed:
- location of the above content. Possibly be https://loopback.io/doc/en/lb4/Model.html or a child page under it?
- What's the expected behavior for noSQL database?