Closed JonnyBGod closed 7 years ago
I am not sure this is because of the upper. Can you try and isolate the problematic model and paste it here, so I can reproduce?
I had this problem with multiple models where I was using lower case names. After changing the models to uppercase it worked for all of them.
The problem is when extending loopback built in models like User I need to create a new model called user to keep an understandable name.
Also worked fine with lower case model names if I remove all _.upperFirst()
.
The right fix is to have on line 47 types[utils.singularModelName(model)].fields
Is there any reason to force using Model names starting with upper case letter?
This is causing problems when using models with lower case names.
utils.js#L50
Error Log: