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'},
});
类型OR@0.2.7
解决方案
推荐阅读
- vue.js - vuetify 导航抽屉无法点击
- swift - Xcode 错误未识别问题所在的代码行
- php - 如何根据给定的字符串和按下按钮时隐藏从数据库中获取信息的表行
- python - 如何在flask rest api python中获取文件的响应
- tmux - 如何从 tmux 会话中删除所有拆分窗口?
- python - 将 3d 列表从 python 传输到 Matlab
- python - 检查子弹精灵与水泥块精灵的碰撞
- reactjs - 组件库中的 Next.js 和巨型 css 文件,如何删除?
- c# - 我猜如何引用一个类?
- bash - Bash 排序顺序是否在不同的 Linux 发行版上有所不同?