loopback 3 delete where code example
Example: loopback find or create
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);