loopback encontre ou crie

 await server.models.Role.findOrCreate(
 	{where: {name: val} },
 	{name: val}
 );
GutoTrosla