We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb42cc commit 130940cCopy full SHA for 130940c
src/middleware/get-query.ts
@@ -303,7 +303,6 @@ export async function getQuery(
303
.select(readableFields);
304
305
// Loop through join tables
306
- const hasJoinMembers = request.joinMembers.length > 0;
307
for (const table of request.joinMembers) {
308
selection = await selection.leftJoinAndSelect(
309
`${objMnemonic}.${table}`,
@@ -326,7 +325,7 @@ export async function getQuery(
326
325
327
// Object alias must be prepended if join tables exist,
328
// but this field isn't from a join
329
- if (hasJoinMembers && !key.includes('.')) {
+ if (!key.includes('.')) {
330
key = 'obj.' + key;
331
}
332
0 commit comments