Closed kekami closed 4 months ago
This is related to the new security improvement we released. More details found in https://github.com/aws-amplify/amplify-category-api/issues/2636
This might also help if using generated graphql statements in Gen 2:
npx ampx generate graphql-client-code --statement-max-depth=1
Please see the updates to the following docs:
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Considering how this has broken prod for customers, will the COE be public?
Environment information
Data packages
Description
Related to #2636 I presume, but it also affects gen2.
In https://docs.amplify.aws/react/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api/ we are supposed to use
npx ampx generate graphql-client-code
to generate the GraphQL client code to access data, however the generated code also tries to fetch related fields resulting in errors being thrown.Eg.
Error: