postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 839 forks source link

Request "Beautify and collapse/expand" feature for graphql body #8322

Open hungdao-testing opened 4 years ago

hungdao-testing commented 4 years ago

Describe the solution you'd like 1) When I'm working on GraphQL body, I could not find a way to collapse/expand a node in body. I have to roll-down and up to find the wanted node to do. My expectation the Postman could support collapse/expand a node as in the response. image

2) It's better to have a "beautify" feature as in API to format the body. image

vvs11 commented 4 years ago

@hungdao-testing Thanks for writing in! We are working on improving the experience around improving grapgQL in Postman. We will keep this in mind while designing the experience

dwiyatci commented 4 years ago

@hungdao-testing @vvs11 I suppose the "Beautify"/"Prettify" feature for GraphQL query would be a great addition to Postman. I'd +:100: that! Thank you :)

entimaniac commented 3 years ago

Having the ability to format graphql requests would be great. I'll generally build my graphql queries in another tool/UI like graphiql for my server, then copy it into postman. If I have to modify it a lot, I'll have to copy it from postman, paste it into another tool, format it, then copy it back into postman.

shivamrsoft commented 3 years ago

Can this be made available to the postman as this would be a lot helpful for proper indentation of gql queries. Also it will help to know who are the child of which key in gql.

acidos commented 3 years ago

Having this feature would save us a lot of time.

KarimMaged97 commented 3 years ago

@vvs11 Hello, Anything new about the "GraphQL Beautify" feature? We all will be so appreciated if you can manage to do it ^^ Thanks in advance.

ananta-dev commented 2 years ago

This would be very useful! Please consider doing it!

juancarlosjr97 commented 2 years ago

Yes, vote +1

ahmedsayedabdelsalam commented 2 years ago

+1

sandra-markerud commented 2 years ago

+1 from me as well

juancarlosjr97 commented 2 years ago

+∞

sheldonj commented 2 years ago

+++++++

snelling-a commented 2 years ago

+1 🙏

blakeworsley commented 2 years ago

Pretty please!

bombillazo commented 2 years ago

+1 as well

Beautify for both Query and GraphQL Variables

omarbenmegdoul commented 2 years ago

Pretty please!

It took 2 years but someone finally caved and made this joke

Aside from that: +1

innovaweb-dev commented 2 years ago

"+1" since 2020. At the same time, the world has found a vaccine counter the COVID 🤣🤣 For the @me of the future, tell me what's going on ? How are you ?

sooohka commented 2 years ago

+1

gabrielasil commented 2 years ago

+1

DerekVonk commented 2 years ago

+1

reis-voll commented 2 years ago

+1

Pawel-Kica commented 2 years ago

+1

billwheaton1715 commented 2 years ago

Having the ability to format graphql requests would be great. I'll generally build my graphql queries in another tool/UI like graphQL for my server, then copy it into postman. If I have to modify it a lot, I'll have to copy it from postman, paste it into another tool, format it, then copy it back into postman.

I would like to see this too for the same reason.
Also, since I often keep the final graphql in a column in a sql table, I need the ability to minify it down to a one liner so I can copy it and paste it into a sql config table field. Likewise for the other direction.... paste the one liner into postman and format it nicely there.

ghost commented 1 year ago

+1

SamKomesarook commented 1 year ago

+1

meenabassem commented 1 year ago

+1

develth commented 1 year ago

DingDong, it is 2023 and still now graphQL beautify

ravi-spoton commented 1 year ago

Are there any alternatives to Postman with better support for graphql?

jeffabailey commented 1 year ago

Are there any alternatives to Postman with better support for graphql?

Yes.

Insomnia is a solid choice.

I recommend using this site.

https://alternativeto.net/software/postman/

SterlingChin commented 1 year ago

Postman just released our new GraphQL client in open beta. 😄 The new client addresses both of these question! I'd love for you to try it out and confirm this.

Also, to address another comment in the thread:

Having the ability to format graphql requests would be great. I'll generally build my graphql queries in another tool/UI like graphiql for my server, then copy it into postman. If I have to modify it a lot, I'll have to copy it from postman, paste it into another tool, format it, then copy it back into postman.

The new client allows you to build your queries in Postman through introspection or loading your schema from local or an API and auto-format the request!

Introspection query building

graphql-schema-explorer

Loading a schema

graphql-import-schema

Writing your own query

graphql-query-builder

joshuapetryk commented 1 year ago

@SterlingChin unfortunately introspection doesn't seem to work with asp.net servers implementing the Hot Cholcolate GraphQL server here: https://github.com/ChilliCream/graphql-platform nevermind seems there's an issue with variable substitution in this new feature: https://github.com/postmanlabs/postman-app-support/issues/11803

shamasis commented 1 year ago

The variable substitution issue is getting worked on. Will update this thread too when that's done.

ryanoboril commented 1 year ago

I am using the latest Postman with GraphQL, after throwing Insomnia in the trash bin. It's awesome, great work!!

I am looking for the ability to "prettify" the GraphQL request body, and for Flows to support graphQL request chains, but I can wait patiently. Take your time even. Thank you and awesome work! 👍

bw-flagship commented 12 months ago

The prettify feature would still be highly appreciated :)

garrucho commented 8 months ago

+1

brunorafa commented 3 weeks ago

+1

hasyee commented 2 weeks ago

+1