-
Notifications
You must be signed in to change notification settings - Fork 247
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
Error with codegen and models preventing API sync #578
Comments
Hi @BesavedTech, thanks for opening the issue.
|
@HuiSF yes it did and no I mean syncing in the app it self. |
After making local changes to the GraphQL schema and data models, you would need to push the latest changes to AWS by running You can check if you have local changes are pending to be pushed by running amplify CLI. |
Hi @Merglobe I am closing this issue for now as we didn't hear from you Regards |
This is a bug report I just filed that includes a couple of bugs I found and the workarounds to each |
When I use your example for many to many relationships in datastore with this schema
`type Post @model @auth(rules: [{allow: public}]) {
id: ID!
title: String!
rating: Int
status: PostStatus
editors: [PostEditor] @connection(keyName: "byPost", fields: ["id"])
}
type PostEditor @model(queries: null) @key(name: "byPost", fields: ["postID", "editorID"]) @key(name: "byEditor", fields: ["editorID", "postID"]) @auth(rules: [{allow: public}])
{
id: ID!
postID: ID!
editorID: ID!
post: Post! @connection(fields: ["postID"])
editor: AmpUser! @connection(fields: ["editorID"])
}`
API Sync fails and when I checked on the AWS Amplify data section, the table PostsEditor does not get created. and it shows it missing under post.
I am not sure what i am doing wrong.
The text was updated successfully, but these errors were encountered: