taoyuan / slu-seed

Database seed module for loopback applications.
10 stars 1 forks source link

Model.all is not a function #2

Open alibugra opened 7 years ago

alibugra commented 7 years ago

When I run the command which is "slu seed harvest", I get following error;

/home/myuser/Desktop/project/project-backend/project_backend_src/node_modules/slu-seed/lib/seed.js:138
    Model.all(function (err, data) {
          ^

TypeError: Model.all is not a function

Could someone explain this error please ? Thank you.

taoyuan commented 7 years ago

It because of some models using some datasources that not support model.all function like loopback-datasource-storage.

So we can check whether the model has all function to fixed it.

@alibugra Could you confirm this issue has been fixed?

alibugra commented 7 years ago

Thanks @taoyuan