Loopback discoverAndBuildModels not generating models

后端 未结 4 1343
鱼传尺愫
鱼传尺愫 2021-02-05 23:29

I\'m trying to get Loopback to discover and build my first table. I\'ve used the simple example on their page at the bottom here:

http://docs.strongloop.com/display/LB/D

4条回答
  •  不知归路
    2021-02-05 23:46

    discovery api is used to only discover the schema not to create models for now. please use the following project to create models with one to one and one to many relationships and all the models.

    https://github.com/savsharma2/loopback-sql-create-model-with-relation/

提交回复
热议问题