Skip to content
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

Fix APQs Automatic persisted queries does not work with mutations #1110

Merged

Conversation

IvanStebletsov
Copy link

Issue: APQs Automatic persisted queries does not work with mutations #1100

@apollo-cla
Copy link

@IvanStebletsov: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Copy link
Contributor

@designatednerd designatednerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks so much for jumping on this!

useGetMethod = self.useGETForQueries || (self.enableAutoPersistedQueries && self.useGETForPersistedQueryRetry)
useGetMethod = operation.operationType == .mutation ? false :
self.useGETForQueries ||
(self.enableAutoPersistedQueries && self.useGETForPersistedQueryRetry)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a giant fan of these huge ternaries, but I'll deal with that post-merge.

@designatednerd designatednerd added this to the Next Release milestone Mar 31, 2020
@designatednerd designatednerd merged commit 2e0d56e into apollographql:master Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants