Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify Studio Data Manager does not sync data to DynamoDB #1101

Closed
danielcastellanosT opened this issue Feb 12, 2024 · 3 comments
Closed

Amplify Studio Data Manager does not sync data to DynamoDB #1101

danielcastellanosT opened this issue Feb 12, 2024 · 3 comments
Labels
pending-response An issue is pending response from the issue requestor pending-triage An issue that is pending triage

Comments

@danielcastellanosT
Copy link

Recently I updated my schema model and start using graphql transformer v2 syntax. But I have experienced problems creating/updating data. This happens specifically with data models that have relationships.

Is this related on how I defined the model relationships? Here's exactly how it's written:

  id: ID!
  campaign_developer: CampaignDeveloper! @belongsTo
  name: String!
  thumbnail: String!
  city: String!
  address: String!
  zone: String!
  latitude: Float!
  longitude: Float!
  campaign_opening_date: AWSDate!
  campaign_closing_date: AWSDate!
  state: CAMPAIGN_STATE!
  documents: [String]
  financial: CampaignFinancialInfo @hasOne
  marketing: CampaignMarketingInfo @hasOne
  investments: [Investment] @hasMany
  cancellations: [Cancellation] @hasMany
}

type CampaignFinancialInfo @model @auth(rules: [{ allow: public }]) {
  id: ID!
  campaign: Campaign! @belongsTo
  annual_yield_rate: Float!
  funding_goal: Float!
  funding_committed: Float!
  funding_raised: Float!
  campaign_type: CAMPAIGN_TYPE!
  campaign_class: CAMPAIGN_CLASS!
  minimum_funding_required: Float!
  term_in_months: Float!
  warranty: String!
  repayment_frequency: PAYMENT_FREQUENCY!
  grace_period_in_months: Float!
  interest_grace_period: Boolean!
}

For example when I try to connect a Campaign object to a CampaignFinancialInfo object through Content Manager, one of the next 2 scenarios can happen:
Content Manager updates the data succesfully. But won't sync it on DynamoDB.
Content Manager aparently "updates" the data succesfully. But when I read the data, it is in the previous state. And of course, won't sync on DynamoDB.
When updating a relationship, the relationship id property is the same id of the record instead of the id of the related record in the related table.

@cwoolum
Copy link
Contributor

cwoolum commented May 23, 2024

Are you seeing any errors in the Chrome debugger? Can you provide your app id and region?

@cwoolum cwoolum added pending-triage An issue that is pending triage pending-response An issue is pending response from the issue requestor labels May 23, 2024
@arundna
Copy link
Member

arundna commented Jun 10, 2024

Closing the issue due to inactivity - This repository only accepts new feature requests for AWS Amplify Studio. For technical support, we encourage you to open a case with AWS technical support if you have AWS support plan. If you do not have an active AWS support plan, we encourage you to leverage our Amplify community Discord server where community members and staff try to help each other with Amplify.

@arundna arundna closed this as completed Jun 10, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

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.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-response An issue is pending response from the issue requestor pending-triage An issue that is pending triage
Projects
None yet
Development

No branches or pull requests

3 participants