Skip to content

Commit c1f9f36

Browse files
authored
fix: codegen downgrade to version 3 (#589)
* Revert "feat: add __typename to selection set (#575)" This reverts commit 066615e. * fix: snapshot * fix: downgrade amplify codegen * fix: api extract
1 parent 5772cde commit c1f9f36

File tree

10 files changed

+22
-189
lines changed

10 files changed

+22
-189
lines changed

packages/amplify-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amplify-codegen",
3-
"version": "4.0.0",
3+
"version": "3.4.3",
44
"description": "amplify code generator",
55
"repository": {
66
"type": "git",

packages/amplify-codegen/src/commands/statements.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ async function generateStatements(context, forceDownloadSchema, maxDepth, withou
6363
const generatedOps = generateGraphQLDocuments(schemaData, {
6464
maxDepth: maxDepth || cfg.amplifyExtension.maxDepth,
6565
useExternalFragmentForS3Object: (language === 'graphql'),
66-
// default typenameIntrospection to true when not set
67-
typenameIntrospection:
68-
cfg.amplifyExtension.typenameIntrospection === undefined ? true : !!cfg.amplifyExtension.typenameIntrospection,
6966
});
7067
if(!generatedOps) {
7168
context.print.warning('No GraphQL statements are generated. Check if the introspection schema has GraphQL operations defined.');

packages/amplify-codegen/tests/commands/statements.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('command - statements', () => {
9797
path.join(MOCK_PROJECT_ROOT, MOCK_SCHEMA),
9898
MOCK_APIS[0],
9999
MOCK_REGION,
100-
forceDownload,
100+
forceDownload
101101
);
102102
});
103103

@@ -110,7 +110,7 @@ describe('command - statements', () => {
110110
path.join(MOCK_PROJECT_ROOT, MOCK_SCHEMA),
111111
MOCK_APIS[0],
112112
MOCK_REGION,
113-
forceDownload,
113+
forceDownload
114114
);
115115
});
116116

packages/graphql-docs-generator/API.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export function buildSchema(schema: string): GraphQLSchema;
1515
export function generateGraphQLDocuments(schema: string, options: {
1616
maxDepth?: number;
1717
useExternalFragmentForS3Object?: boolean;
18-
typenameIntrospection?: boolean;
1918
}): GeneratedOperations;
2019

2120
// (No @packageDocumentation comment for this package)

0 commit comments

Comments
 (0)