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
Hi ,
is it possible to return a promise when ds is ready to create model as against using the ds.once and wrapping supposed method calls that (could be exposed to other modules) inside ds.once() . for instance
var ds=loopback.createDataSource('soap',
{
connector: require('../index'),
remotingEnabled: true,
// wsdl: 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL' // The url to WSDL
wsdl: path.join(__dirname, './weather.wsdl')
}).then(function(){
return ds.createModel('WeatherService', {});
});
The text was updated successfully, but these errors were encountered:
@joshua1 : It's not possible right now as createDataSource() function is not yet promisified. You can track the progress of making LoopBack promise-enabled here.
Closing due to inactivity. Please feel free to reopen this in Loopback repo as it's appropriate repo for this request. Thank you.
Hi ,
is it possible to return a promise when ds is ready to create model as against using the ds.once and wrapping supposed method calls that (could be exposed to other modules) inside ds.once() . for instance
var ds=loopback.createDataSource('soap',
{
connector: require('../index'),
remotingEnabled: true,
// wsdl: 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL' // The url to WSDL
wsdl: path.join(__dirname, './weather.wsdl')
}).then(function(){
return ds.createModel('WeatherService', {});
});
The text was updated successfully, but these errors were encountered: