Unhandled error in GET /color: 500 TypeError: this.modelClass.find is not a function
at classes.(anonymous function).find (/home/minnak/Darbas/market/node_modules/@loopback/repository/dist/repositories/legacy-juggler-bridge.js:205:60)
at classes.(anonymous function).find (/home/minnak/Darbas/market/packages/lb4/realworld/src/lib/crud-controller-factory.js:29:46)
at value_promise_1.transformValueOrPromise.args (/home/minnak/Darbas/market/node_modules/@loopback/context/dist/resolver.js:181:41)
at Object.transformValueOrPromise (/home/minnak/Darbas/market/node_modules/@loopback/context/dist/value-promise.js:227:16)
at Object.invokeMethod (/home/minnak/Darbas/market/node_modules/@loopback/context/dist/resolver.js:176:28)
at ControllerRoute.invokeHandler (/home/minnak/Darbas/market/node_modules/@loopback/rest/dist/router/controller-route.js:65:32)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
I try implementing rest datasource in color CRUD example instead of memory datasource.
datasources/rest.datasource.js
datasources/index.js
exports.RestDataSource = require('./rest.datasource');
color.repository.js
While executing find query I get an error: