loopback code example
Example 1: loopback ilike
Post.find({where: {title: {ilike: 'm.-st'}}},
function (err, posts) { ... });
Example 2: loopback upsert
PersistedModel.upsert(data, callback)
Example 3: loopback find or create
await server.models.Role.findOrCreate(
{where: {name: val} },
{name: val}
);
Example 4: loopback
npm i -g @loopback/cli