We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dabe5db commit f8aab85Copy full SHA for f8aab85
src/pages/cli/graphql/overview.mdx
@@ -84,9 +84,9 @@ export class BackendStack extends cdk.Stack {
84
super(scope, id, props);
85
86
const amplifyApi = new AmplifyGraphqlApi(this, 'AmplifyCdkGraphQlApi', {
87
- schema: AmplifyGraphqlSchema.fromFiles(path.join(__dirname, "schema.graphql")),
88
- authorizationConfig: {
89
- defaultAuthMode: 'API_KEY',
+ definition: AmplifyGraphqlDefinition.fromFiles(path.join(__dirname, "schema.graphql")),
+ authorizationModes: {
+ defaultAuthorizationMode: 'API_KEY',
90
apiKeyConfig: {
91
expires: cdk.Duration.days(30)
92
}
0 commit comments