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

feature: GraphQL support (issue #326) #327

Closed
wants to merge 7 commits into from

Conversation

pavelperc
Copy link

@pavelperc pavelperc commented Nov 3, 2024

fixes #326

Hello. I added a basic GraphQL support for network plugin. It recognises POST api calls with "query" part in it and shows query name and type instead of api path in api calls list. Also, it recognises errors in api response and paints api calls in red, even if the status code is 200.

You may not like the way it is done. I thought about making a separate graphql interceptor with apollo graphql library (https://github.com/apollographql/apollo-kotlin), but graphql calls use http under the hood, so grapqhl calls would be duplicated in http interceptor. Also different clients use different versions of apollo library (2x, 3x, 4x), and it is a bad way to add a dependency only with one version of library. I thought it would be easier to parse raw request, rather then add an interceptor, but we can discuss and I can redo the implementation.

pluto1 pluto2 pluto3

@CLAassistant
Copy link

CLAassistant commented Nov 3, 2024

CLA assistant check
All committers have signed the CLA.

@pavelperc pavelperc changed the title feature: GraphQL support feature: GraphQL support (issue #326) Nov 3, 2024
@pavelperc pavelperc closed this Nov 5, 2024
@pavelperc
Copy link
Author

replaced by #328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature[network-plugin]: GraphQL support
2 participants