-
Notifications
You must be signed in to change notification settings - Fork 202
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
Unable to create mutation if @connection is present #483
Comments
Hi @mickeysox, thanks for reporting this issue. I was able to reproduce this and it appears that when creating a Post, the selection set that is generated is missing the User fields, instead it populating another field called I fixed this in #509 if you like, feel free to use this branch. I have also tried your schema and was able to create a post with the following code. Podfile, using local pods on the
ContentView.swift
|
Hi @lawmicha Thank you so much for fixing this. Could you tell me how I could use the fixed branch? i.e. update my pods or? I have a separate but potentially related issue regarding DataStore. I have put a message out in discord https://discord.com/channels/705853757799399426/707328996995760179/717494199875797092 if you have a minute would you mind checking? In summary, when I use Here is the output:
Model (note that I added userId and no connection to Post): `type User @model { type UserFollowing @model @key(name: "following", fields:["userId"]) { type UserFollowers @model @key(name: "followers", fields:["userId"]) { type Post @model @key(name: "posts", fields:["userId", "createdTimestamp"], queryField: "postsByCreatedtimestamp" ) { |
Hi @mickeysox
pwd will print out the full path with the current directory. this can be used in the Podfile to install pods directly from your local repo, by using
I usually just remove Podfile.lock and Pods directory, before If you need to go back to the released version, remove the |
For the DataStore issue, i have created a new issue for us to take a look at over here #510 |
the change related to associations #509 has been released in 1.0.1 |
State your question
I have a graphql setup which has users and posts. If there is no connection between them, I can create a post, however as soon as I create the connection, I get the following error:
Which AWS Services are you utilizing?
Amplify graphql
Provide code snippets (if applicable)
model
If I remove the posts connection, I can create Posts.
Please note that I am using Amplify plugins, not the SDK.
Any help is appreciated. All versions of tools are up to date.
The text was updated successfully, but these errors were encountered: