TypeORM存储库查找选项

时间:2018-06-24 20:44:45

标签: node.js typeorm

我正在尝试遵循此信息http://typeorm.io/#/find-options,但无法指定任何列出的选项(选择,关系,顺序),并出现以下错误:

Object literal may only specify known properties and 'where' does not exist in type 'FindConditions<xxx>'

其中的关系或顺序取决于指定的第一个选项。

this.reportRepository.find({
  where: {},
  relations: ['fss'],
  order: {date_created: 'DESC'},
});

TypeOR@0.2.7

0 个答案:

没有答案
相关问题