Loopback Найти или создать
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);
GutoTrosla
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);