bucleback buscar o crear
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);
GutoTrosla
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);
Post.find({where: {title: {ilike: 'm.-st'}}},
function (err, posts) { ... });
PersistedModel.upsert(data, callback)
npm i -g @loopback/cli
import {get} from '@loopback/rest';
export class HelloController {
@get('/hello')
hello(): string {
return 'Hello world!';
}
}
pactl load-module module-loopback latency_msec=1