-
Notifications
You must be signed in to change notification settings - Fork 738
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
Can't access result from mutation #663
Comments
Are you on 0.13.0? If so, see release notes:
|
Ugh this must be it. I was reading the notes earlier in relation to a build issue I was having and totally missed this bullet point. I will try this out. Thank you! |
@akhilpothana please let me know if this worked! |
Given that this is covered in the release notes for |
@designatednerd sorry! yes that was the issue. All fixed! |
Awesome, thanks for letting us know! |
I am trying to make a simple mutation to register a user. When I call
.perform(mutation: GraphQLMutation)
, it works and a user is created in the database. I'm trying to now get information back from the server using the code below.When I only access and print
result
in my mutation call, this is the data I get back, so I know I'm getting something:But when I try to access any of the data (e.g.
result?.data?.register?.id
) I get this error:Here's my mutation:
This is ApolloClass:
There has to be something I'm missing in the way I'm trying to access the contained data
The text was updated successfully, but these errors were encountered: