-
Notifications
You must be signed in to change notification settings - Fork 668
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
AutoPersistedQueries supported for mutations #2509
Conversation
@Toxu4: 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/ |
Hi! Thanks for the contribution 👍 . My only concern is that it silently enables APQs (Auto Persisted Queries) on mutations for existing users upgrading from a previous version of If you want to enable APQs for mutation, you can use builder.setAutoPersistedOperationsInterceptorFactory(ApolloAutoPersistedOperationInterceptor.Factory()) |
Hi! |
I think this feature should work the same on js, ios and android clients, for js and ios it works now |
If iOS users had no issue during the transition then we can certainly take that risk. Another option would be to add: public Builder enableAutoPersistedOperations(boolean persistOperations) {
return setAutoPersistedOperationsInterceptorFactory(
new ApolloAutoPersistedOperationInterceptor.Factory(false, persistOperations, persistOperations)
)
} That would keep the existing behaviour untouched and also be more explicit about queries vs operations. @designatednerd any thoughts? |
I think this is a bug, so it should be fixed by changing behaviour, not by changing api. In the long run, I would prefer the APQ to be renamed APO (AutoPersistedOperations) :) |
Looks like enabling mutations should be fine 🤞 . I'll merge this, make a minor |
Thanks for bringing this up! |
No description provided.