ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.57k stars 185 forks source link

Format GraphQL request body in gists #1042

Open vrnvorona opened 2 years ago

vrnvorona commented 2 years ago

Proxyman version? 2.34.1 (23410)

macOS Version? 11.6

Enhancement: format Graphql request when publishing gists

Currently it does great job with formatting JSON bodies, but gql query is still raw string. Maybe it could be helpful to format it as well?

NghiaTranUIT commented 2 years ago

Thanks. We will sort it on and send you beta build @vrnvorona 🙌

NghiaTranUIT commented 2 years ago

@vrnvorona Just wondering: Do you mean that Proxyman should beautify the "Query" in the Request JSON?

I tried to send a minified graphQL body.

Screen Shot 2021-10-21 at 20 48 20

It is formatted in the gist

Screen Shot 2021-10-21 at 20 47 42
vrnvorona commented 2 years ago

@NghiaTranUIT I meant to use GraphQL pretty view which is used in request view Because long string of query is not really readable image

NghiaTranUIT commented 2 years ago

Sorry, at the moment, Proxyman only publishes the Raw Tab. Therefore, there is no way to publish a customize Tab (like a GraphQL tab).

However, It's a reasonable idea to support it in future release 👍