Skip to content

fix(gen2-migration): graphql additional auth providers escape hatch compilation error#14416

Merged
iliapolo merged 1 commit intogen2-migrationfrom
epolon/graphql-escape-hatch
Dec 30, 2025
Merged

fix(gen2-migration): graphql additional auth providers escape hatch compilation error#14416
iliapolo merged 1 commit intogen2-migrationfrom
epolon/graphql-escape-hatch

Conversation

@iliapolo
Copy link
Contributor

@iliapolo iliapolo commented Dec 30, 2025

Description of changes

The escape that is currently being generated has a compilation error:

backend.data.resources.cfnResources.cfnGraphQLApi
Expected an assignment or function call and instead saw an expression.eslint[@typescript-eslint/no-unused-expressions](https://typescript-eslint.io/rules/no-unused-expressions)
Property 'cfnGraphQLApi' does not exist on type 'AmplifyGraphqlApiCfnResources'. Did you mean 'cfnGraphqlApi'?ts(2551)
types.d.ts(667, 14): 'cfnGraphqlApi' is declared here.

It should be:

backend.data.resources.cfnResources.cfnGraphqlApi

Description of how you validated changes

Manual test

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@iliapolo iliapolo requested a review from a team as a code owner December 30, 2025 00:44
@iliapolo iliapolo merged commit 2514703 into gen2-migration Dec 30, 2025
4 checks passed
@iliapolo iliapolo deleted the epolon/graphql-escape-hatch branch December 30, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants