We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
operationName
As a user it is helpful to display the operationName in the network panel to easily disambiguate between subscriptions.
If the operationName or full operation is passed to the url callback:
operation
url: string | ((operation: Operation) => Promise<string> | string); ... export function createClient(options) { ... return { subscribe(request, sink) { ... const url = typeof options.url === 'function' ? await options.url(request) : options.url;
Then it is possible to do something like this:
createClient({ url: ({operationName}) => `graphql-sse/${operationName}` })
Which results in the Dev tools Network panel looking like this (top 2 with the change vs. bottom 2 without):
Would something along these lines be possible?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Story
As a user it is helpful to display the
operationName
in the network panel to easily disambiguate between subscriptions.If the
operationName
or fulloperation
is passed to the url callback:Then it is possible to do something like this:
Which results in the Dev tools Network panel looking like this (top 2 with the change vs. bottom 2 without):
Would something along these lines be possible?
The text was updated successfully, but these errors were encountered: