Open amirmishani opened 5 years ago
Hi @amirmishani
The graphqlMutation
helper doesn't work on types with connections at the moment. For now you'll have to write your own apollo update functions, I am sorry I don't have a better suggestion at the moment.
I am labeling this as a feature request.
@manueliglesias Thanks for the info. After I opened the issue I did end up writing my own apollo update functions and it's working perfectly. Obviously the boilerplate is a bit much but it's worth getting the offline capabilities.
Which Category is your question related to? API
What AWS Services are you utilizing? AWS Appsync SDK
Provide additional details e.g. code snippets How do you get AWS Appsync Optimistic Response to work when your models have relationships using @connection?
The generated mutation input fields don't take "jobs" as input but the optimistic response requires it to work. I get this warning that says: Missing field jobs in { "__typename": "User"...}
My User model uses @connection to connect users with jobs.
My react component setup: