Add contextIdentifier: UUID?
parameter to perform(mutation:...)
method on ApolloClient
#2514
Labels
contextIdentifier: UUID?
parameter to perform(mutation:...)
method on ApolloClient
#2514
Hello!
Feature request
I'd like to add an optional parameter on
ApolloClient
'sperform(mutation:...)
method for thecontextIdentiifer: UUID?
of the request. This parameter is already present in the client'sfetch(query:...)
method, but unfortunately missing fromperform(mutation:...)
.Motivation
I'm interested in a similar functionality described by this other issue #2283. In short, I need to add certain headers to specific request instances. Using the
contextIdentifier
helps with this, but this option is not available on mutations.In the short term, adding the parameter should offer this flexibility for mutations while the H2 networking stack overhaul comes through (as mentioned in the other issue).
Proposed solution
Add optional
contextIdentifier: UUID?
toApolloClient
'sperform(mutation:...)
method.Outstanding Questions
The only potential conflict this PR could add is if integrators have created their own implementation against
ApolloClientProtocol
. In those cases, they will have to repair the conformance since the change is a breaking change on the protocol.The text was updated successfully, but these errors were encountered: