loopback encontre ou crie
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);
GutoTrosla
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);
PersistedModel.count([where], callback)