Skip to content

Commit 898926d

Browse files
committed
fix: return correct handle
1 parent 82c54c8 commit 898926d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/graphorm/index.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,6 +1660,28 @@ const obj = new GraphORM({
16601660
},
16611661
},
16621662
},
1663+
TrendingUserSource: {
1664+
fields: {
1665+
handle: {
1666+
customQuery: (_, alias, qb) =>
1667+
qb
1668+
.select('u.username')
1669+
.from(User, 'u')
1670+
.where(`u.id = ${alias}."sourceId"`),
1671+
},
1672+
},
1673+
},
1674+
PopularUserSource: {
1675+
fields: {
1676+
handle: {
1677+
customQuery: (_, alias, qb) =>
1678+
qb
1679+
.select('u.username')
1680+
.from(User, 'u')
1681+
.where(`u.id = ${alias}."sourceId"`),
1682+
},
1683+
},
1684+
},
16631685
});
16641686

16651687
export default obj;

0 commit comments

Comments
 (0)