-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Operation name not showing with Apollo 4 #1295
Comments
Oh that's curious. A reproducer would help. Could you share the headers of that request you have on screen @cshrivastav007 ? |
If you need to verify the operation name header, note that the |
Are there no other headers where this information is available? |
No, I believe it should be added via an interceptor by the host app (from Apollo4). For Chucker, instead of relying on the header, it would be more efficient to set the graphQlOperationName using request.operation.name() |
Chucker doesn't have access to that method though as we don't know if the user has the Apollo library installed or not. So we'll have to either inspect the body or the headers of the request |
Ah, I see. Since it's not an Apollo Interceptor, it seems the only option is to retrieve the operation name from the decoded body content, right? 🤔 |
Yeah if there are no other headers, seems like that the preferred way |
✍️ Describe the bug
After upgrading to Apollo4 the chucker could not discover operation name in graphQl request.
🔧 Expected behavior
Correct operation name should be displayed in chucker app.
📷 Screenshots
📱 Tech info
The text was updated successfully, but these errors were encountered: