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.cjs
CHANGED
|
@@ -286,13 +286,9 @@ var extractSelectedColumnsFromTree = (tree, table) => {
|
|
|
286
286
|
for (const [typeName, typeFields] of Object.entries(
|
|
287
287
|
fieldData.fieldsByTypeName
|
|
288
288
|
)) {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
)) {
|
|
293
|
-
if (tableColumns[subFieldData.name]) {
|
|
294
|
-
selectedColumns.push([subFieldData.name, true]);
|
|
295
|
-
}
|
|
289
|
+
for (const [subFieldName, subFieldData] of Object.entries(typeFields)) {
|
|
290
|
+
if (tableColumns[subFieldData.name]) {
|
|
291
|
+
selectedColumns.push([subFieldData.name, true]);
|
|
296
292
|
}
|
|
297
293
|
}
|
|
298
294
|
}
|
|
@@ -320,16 +316,12 @@ var extractSelectedColumnsFromTreeSQLFormat = (tree, table) => {
|
|
|
320
316
|
for (const [typeName, typeFields] of Object.entries(
|
|
321
317
|
fieldData.fieldsByTypeName
|
|
322
318
|
)) {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
subFieldData.name,
|
|
330
|
-
tableColumns[subFieldData.name]
|
|
331
|
-
]);
|
|
332
|
-
}
|
|
319
|
+
for (const [subFieldName, subFieldData] of Object.entries(typeFields)) {
|
|
320
|
+
if (tableColumns[subFieldData.name]) {
|
|
321
|
+
selectedColumns.push([
|
|
322
|
+
subFieldData.name,
|
|
323
|
+
tableColumns[subFieldData.name]
|
|
324
|
+
]);
|
|
333
325
|
}
|
|
334
326
|
}
|
|
335
327
|
}
|