drizzle-graphql-plus 0.8.12 → 0.8.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +9 -17
- package/index.cjs.map +1 -1
- package/index.js +9 -17
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -319,13 +319,9 @@ var extractSelectedColumnsFromTree = (tree, table) => {
|
|
|
319
319
|
for (const [typeName, typeFields] of Object.entries(
|
|
320
320
|
fieldData.fieldsByTypeName
|
|
321
321
|
)) {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
)) {
|
|
326
|
-
if (tableColumns[subFieldData.name]) {
|
|
327
|
-
selectedColumns.push([subFieldData.name, true]);
|
|
328
|
-
}
|
|
322
|
+
for (const [subFieldName, subFieldData] of Object.entries(typeFields)) {
|
|
323
|
+
if (tableColumns[subFieldData.name]) {
|
|
324
|
+
selectedColumns.push([subFieldData.name, true]);
|
|
329
325
|
}
|
|
330
326
|
}
|
|
331
327
|
}
|
|
@@ -353,16 +349,12 @@ var extractSelectedColumnsFromTreeSQLFormat = (tree, table) => {
|
|
|
353
349
|
for (const [typeName, typeFields] of Object.entries(
|
|
354
350
|
fieldData.fieldsByTypeName
|
|
355
351
|
)) {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
subFieldData.name,
|
|
363
|
-
tableColumns[subFieldData.name]
|
|
364
|
-
]);
|
|
365
|
-
}
|
|
352
|
+
for (const [subFieldName, subFieldData] of Object.entries(typeFields)) {
|
|
353
|
+
if (tableColumns[subFieldData.name]) {
|
|
354
|
+
selectedColumns.push([
|
|
355
|
+
subFieldData.name,
|
|
356
|
+
tableColumns[subFieldData.name]
|
|
357
|
+
]);
|
|
366
358
|
}
|
|
367
359
|
}
|
|
368
360
|
}
|