The amplify docs talk about using transactions in custom resolvers, but they don't talk about how to get the generated tablenames into said resolvers. If I try:
backend.data.resources.cfnResources.cfnGraphqlApi.addPropertyOverride(
"EnvironmentVariables",
{
USER_TABLE_NAME: backend.data.resources.tables.User.tableName,
API_ID: backend.data.apiId,
}
);
It will fail because of a circular dependency whether I try passing either the tableName or the apiId.
So how are we supposed to do make batch requests or transactions without knowing the tablenames?