warrenday / graphql-network-inspector

A better network inspector for viewing and debugging GraphQL requests.
MIT License
466 stars 46 forks source link

Add "Copy Input" button for convenience #53

Closed ZipBrandon closed 2 years ago

ZipBrandon commented 2 years ago

Is your feature request related to a problem? Please describe. I have to copy current requests from my app in GraphQL Network Inspector into GraphiQL for debugging or iteration. It would be nice to have this convenience to copy that input.

Describe the solution you'd like Add a button next to COPY for COPY INPUT. Possibly change COPY to COPY REQUEST for disambiguation.

Describe alternatives you've considered Scrolling to the bottom of the Request, selecting all, and CMD-C.

Additional context image

warrenday commented 2 years ago

Hi @ZipBrandon are you referring to needing to copy the graphql variables? As the copy button should work with the request body.

ZipBrandon commented 2 years ago

Yes, @warrenday that's exactly what it should be. Copy Variables. The copy button does indeed work with the body and is terrific! Previous to this extension I was having to hand convert from the Network tab.

warrenday commented 2 years ago

Ok, i'll add the button. Hopefully it will make your job a little easier 👍

warrenday commented 2 years ago

Released version 2.7 which now contains copy vars button