You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use this mixin and can't get it to work with the following setup:
server/server.js
var loopback = require('loopback');
var boot = require('loopback-boot');
// Otherwise Promise.map doesn't work.
global.Promise = require('bluebird');
var app = module.exports = loopback();
require('loopback-ds-computed-mixin')(app);
app.start = function() {
// start the web server
return app.listen(function() {
app.emit('started');
console.log('Web server listening at: %s', app.get('url'));
});
};
// Bootstrap the application, configure models, datasources and middleware.
// Sub-apps like REST API are mounted via boot scripts.
boot(app, __dirname, function(err) {
if (err) throw err;
// start the server if `$ node server.js`
if (require.main === module)
app.start();
});
I have the same issue. The solution of adding the column to the table doesn't make sense since its a computed property (ie. it shouldnt be a real column)
I tried to use this mixin and can't get it to work with the following setup:
server/server.js
common/models/myModel.json
common/models/myModel.js
When I try to
GET /api/MyModels
I get an error from the mysql connector saying it can't find thedescription
field.The text was updated successfully, but these errors were encountered: