Loopback: How to change the name of a model?

I have a model with name “aaa_bbb”, I want to change the name to aaa-bbb, I would like to know how I can achieve that? Or can I just change the name directly in my model json file? Here is the my current model json file.

{
  "name": "aaa_bbb",
  "base": "PersistedModel",
  "idInjection": true,
  "options": {
    "validateUpsert": true
  },
  "properties": {
    ...
  },
  "acls": [],
  "methods": []
}


Source: json

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.