sequelize-typescript querying if string contains word
问题 I m using Nestjs + sequelize-typescript + postgresql. I would like to select rows in table that content contains specific word. this is my code : async findUsers(searchedWord: string): Promise<users[]> { return await this.USER_REPOSITORY.findAll({ attributes: [ 'id', 'name' ], where: { content: '%'+ searchedWord +'%' }, order: [ [ 'id', 'ASC' ] ] }); } } but this method didn't work ! Any suggestions ? 来源: https://stackoverflow.com/questions/59533244/sequelize-typescript-querying-if-string