Open bingtsingw opened 6 hours ago
Seems it's only not working in this parentId
pattern, which joins the same table with a table name collision.
I just found that order()
field has collisions too.
await commentRepo
.find(comment.id)
.selectForList()
.select({ subcomments: (q) => q.subcomments.select('id', 'createdAt', 'rootId').order({ createdAt: 'ASC' })
.order({createdAt: 'DESC'})
The order is totally chaotic
https://github.com/bingtsingw/orchid-reproduction