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.82k stars 836 forks source link

Find and replace not searching in GraphQL variables #12464

Open kcamo opened 10 months ago

kcamo commented 10 months ago

Is there an existing issue for this?

Describe the Issue

“Find and replace” does not return matches that are in GraphQL variables. I.e. in the request body, “Find and replace” matches strings in the “Query” box but not in the "GraphQL variables" box. This makes it challenging to maintain/rename environment variables especially if you’ve used them in numerous GraphQL requests.

Steps To Reproduce

  1. Create an environment variable.
  2. Create a request ad set its Body type to GraphQL.
  3. Use the environment variable in the "GraphQL variables" portion of the UI.
  4. Go to "Find and replace". Search for the environment variable. Notice that the results do not include the environment variable used in the "GraphQL variables".

Screenshots or Videos

No response

Operating System

macOS

Postman Version

10.19.10

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

For my particular case I was using Send GraphQL queries using the HTTP request interface | Postman Learning Center - this is v1 that uses the same interface as the REST API calls. That’s because I am creating sequential requests involving 3 different servers, some using REST while some using GraphQL.

nickwinsor commented 8 months ago

I'm experiencing the same issue in 10.22.6.

Would be amazing to have this included in "Find and Replace" since the input to the request is the most likely thing to require mass updates in my use case.

no_results