1Post.find({where: {title: {ilike: 'm.-st'}}},
2 function (err, posts) { ... });
1 await server.models.Role.findOrCreate(
2 {where: {name: val} },
3 {name: val}
4 );
1import {get} from '@loopback/rest';
2
3export class HelloController {
4 @get('/hello')
5 hello(): string {
6 return 'Hello world!';
7 }
8}
9