Skip to content

Commit d4214f4

Browse files
committed
fix: the foreign field is overwritten by the relationship
1 parent 627648e commit d4214f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const getFields = (shape: Record<string, any>) => {
8585
return fields.replace(
8686
new RegExp(
8787
Object.keys(joins)
88-
.map((j) => `${j}(?=\\()`)
88+
.map((joinKey) => `${joinKey}(?=\\()`)
8989
.join("|"),
9090
"g"
9191
),

0 commit comments

Comments
 (0)