How to perform joins on non-primary columns and complex select statements in loopback 4?
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
未指定源文件、测试或入口点。首先参考非主列连接和复杂 SELECT 示例,检查 LoopBack 4 的关系和查询 API;完成的标准是确定一种有文档说明的受支持方法,或明确记录限制和所需范围。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Hi i am new to loopback and need to create an API with business logic that contains several complex queries. I cant seem to find a way to join two tables with non-primary columns. For example, select * from e_c left join e on e.ed=e_c.ed Table relations: e_c.ed fk to ed table on id e.ed fk to ed table on id
On the same note writing complex select statements are also needed. For example, select (case when completed_on is null then 1 else 0 end) flag from e or select sum(rating) from f_b
Kindly provide some method by which these can be achieved via loopback 4
Logs
No response
Additional information
No response
Reproduction
- 主要语言
- TypeScript
- 星标
- 5.1k
- 派生
- 1.1k
- 平均合并
- 5 天 9 小时
- 30 天内合并 PR
- 28
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
loopbackio/loopback-next 的其他 Issue
-
Docs good first issue help wanted
难度 1/5 1-3 小时 新手友好度 68/100
loopbackio/loopback-next#683 · 3 条评论 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 55/100
loopbackio/loopback-next#11726 ·
维护者通常 4 天内回复
-
bug
难度 5/5 一周以上 新手友好度 35/100
loopbackio/loopback-next#11500 · 1 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 35/100
loopbackio/loopback-next#11412 · 1 条评论 ·
维护者通常 4 天内回复
-
Query parameter array parsing broken for >20 items after qs upgrade (CVE fix side effect)可能重新可做 @KauanAfonso 于 121 天前认领,目前没有进行中的 PR。 未关闭bug help wanted
难度 3/5 1-2 天 新手友好度 45/100
loopbackio/loopback-next#11396 · 2 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
查看 loopbackio/loopback-next 的全部 Issue
相似的 Issue
-
check:passed streams:add
难度 1/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
beta technical-medium ui
难度 2/5 1-3 小时 新手友好度 62/100
walletbeat/walletbeat#1625 ·
维护者通常 1 天内回复
-
[Good First Issue]: Add unit tests for NetworkVersionInfo可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Good First Issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 85/100
hiero-ledger/hiero-sdk-js#4489 ·
维护者通常 1 天内回复
-
[Bug] The clients language filter cannot select the rows the page labels as unknown可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
apache/rocketmq-dashboard#6103 ·
维护者通常 4 天内回复
-
Bug
难度 2/5 1-3 小时 新手友好度 76/100
payloadcms/payload#18652 ·
维护者通常 1 天内回复