Skip to content

Commit f8aab85

Browse files
authored
fix: Fix CDK types in overview
Fix CDK types in the overview. Previous version referred to non-existent types.
1 parent dabe5db commit f8aab85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/cli/graphql/overview.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ export class BackendStack extends cdk.Stack {
8484
super(scope, id, props);
8585

8686
const amplifyApi = new AmplifyGraphqlApi(this, 'AmplifyCdkGraphQlApi', {
87-
schema: AmplifyGraphqlSchema.fromFiles(path.join(__dirname, "schema.graphql")),
88-
authorizationConfig: {
89-
defaultAuthMode: 'API_KEY',
87+
definition: AmplifyGraphqlDefinition.fromFiles(path.join(__dirname, "schema.graphql")),
88+
authorizationModes: {
89+
defaultAuthorizationMode: 'API_KEY',
9090
apiKeyConfig: {
9191
expires: cdk.Duration.days(30)
9292
}

0 commit comments

Comments
 (0)