首页 > 解决方案 > 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'},
});

类型OR@0.2.7

标签: node.jstypeorm

解决方案


推荐阅读