-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Datastore cannot delete one to many relationship #5088
Comments
Thank you @apoorvmote We are tracking this together with the cli team. There's work already started: aws-amplify/amplify-cli#3680 |
The new warning looks good 👍 @manueliglesias! |
This is upsetting now I get following error. Why did it not warn me before I did
I am also interested in the same |
There should also be warning on datastore. Because everything is saved in datastore locally but when you push to cloud then lots of things start to break. Many things don't sync with API for whatever reason. |
@apoorvmote by chance we actually looked at this earlier today, and there are two issues at play. First the However there might be a bug here as well which is the crux of the issue that you've reported. We should be able to cascade the deletes in a 1:N relationship but the |
Following up for future reference: We updated the docs for Relational modeling. We made some improvements to the CLI, the library on how it handles this internally, and tried to be explicit about schemas in the documentation including how to use |
Hello, I have also run into this problem, is there a solution to this, thank you. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
I have simple one to many relationship. I haven't even gotten to many part yet. I am just testing adding and deleting to one part of relationship. I can add but I cannot delete. I get this error
Failed to execute 'index' on 'IDBObjectStore': The specified index was not found
To Reproduce
npx create-react-app blog --use-npm --template typescript
amplify init
amplify add api
not adding auth just trying to keep it simple.add following schema
then I create post this part works.
But when I try to delete post then it errors out.
I haven't tried adding comments yet.
I do get the original post but I just cannot delete it. I get following error
Failed to execute 'index' on 'IDBObjectStore': The specified index was not found
The text was updated successfully, but these errors were encountered: