loopbackjs - Loopback.js Instantiate PersistedModel without Database Transaction -


is possible instantiate persistedmodel subclass without having wait database transaction go through? know modelclass.create({...}) return promise resolves when instance created, there version of returns unsaved modelclass instance?

i don't believe there way in 1 request if that's you're thinking. best use:

model.create({...}, function(err, instance) {   // custom logic here   instance.save(); // save again here }); 

Comments