@constructive-io/graphql-codegen 2.28.4 → 2.28.5
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.
|
@@ -377,6 +377,20 @@ function generateCreateClientFile(tables, hasCustomQueries, hasCustomMutations)
|
|
|
377
377
|
], t.stringLiteral('./query-builder')));
|
|
378
378
|
// export * from './select-types';
|
|
379
379
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./select-types')));
|
|
380
|
+
// Re-export all models for backwards compatibility
|
|
381
|
+
// export * from './models';
|
|
382
|
+
statements.push(t.exportAllDeclaration(t.stringLiteral('./models')));
|
|
383
|
+
// Re-export custom operations for backwards compatibility
|
|
384
|
+
if (hasCustomQueries) {
|
|
385
|
+
statements.push(t.exportNamedDeclaration(null, [
|
|
386
|
+
t.exportSpecifier(t.identifier('createQueryOperations'), t.identifier('createQueryOperations')),
|
|
387
|
+
], t.stringLiteral('./query')));
|
|
388
|
+
}
|
|
389
|
+
if (hasCustomMutations) {
|
|
390
|
+
statements.push(t.exportNamedDeclaration(null, [
|
|
391
|
+
t.exportSpecifier(t.identifier('createMutationOperations'), t.identifier('createMutationOperations')),
|
|
392
|
+
], t.stringLiteral('./mutation')));
|
|
393
|
+
}
|
|
380
394
|
// Build the return object properties
|
|
381
395
|
const returnProperties = [];
|
|
382
396
|
for (const table of tables) {
|
|
@@ -338,6 +338,20 @@ export function generateCreateClientFile(tables, hasCustomQueries, hasCustomMuta
|
|
|
338
338
|
], t.stringLiteral('./query-builder')));
|
|
339
339
|
// export * from './select-types';
|
|
340
340
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./select-types')));
|
|
341
|
+
// Re-export all models for backwards compatibility
|
|
342
|
+
// export * from './models';
|
|
343
|
+
statements.push(t.exportAllDeclaration(t.stringLiteral('./models')));
|
|
344
|
+
// Re-export custom operations for backwards compatibility
|
|
345
|
+
if (hasCustomQueries) {
|
|
346
|
+
statements.push(t.exportNamedDeclaration(null, [
|
|
347
|
+
t.exportSpecifier(t.identifier('createQueryOperations'), t.identifier('createQueryOperations')),
|
|
348
|
+
], t.stringLiteral('./query')));
|
|
349
|
+
}
|
|
350
|
+
if (hasCustomMutations) {
|
|
351
|
+
statements.push(t.exportNamedDeclaration(null, [
|
|
352
|
+
t.exportSpecifier(t.identifier('createMutationOperations'), t.identifier('createMutationOperations')),
|
|
353
|
+
], t.stringLiteral('./mutation')));
|
|
354
|
+
}
|
|
341
355
|
// Build the return object properties
|
|
342
356
|
const returnProperties = [];
|
|
343
357
|
for (const table of tables) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-codegen",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.5",
|
|
4
4
|
"description": "CLI-based GraphQL SDK generator for PostGraphile endpoints with React Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"tsx": "^4.21.0",
|
|
90
90
|
"typescript": "^5.9.3"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "64fdb385977ead1f08cb95f63be2f3299ac90cd4"
|
|
93
93
|
}
|