usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.34k stars 1.25k forks source link

GraphQL #3115

Closed vidi42 closed 1 month ago

vidi42 commented 1 month ago

I have checked the following:

Describe the bug

Environment variables are not replaced in the GraphQL variables JSON.

I'm attaching a simple example using a public GraphQL API.

.bru file to reproduce the bug

Attached is the collection to reproduce the issue. It has an environment called default so make sure to select it before running the Get Country Details request. Bruno.zip

Screenshots/Live demo link

Working example with no environment variable used: image

Non working example with environment variable used: image image

That-1-QA commented 1 month ago

Looks like a duplicate of this https://github.com/usebruno/bruno/issues/2960, I've got a workaround using the latest version of Bruno, and other users report using earlier builds also works:

vidi42 commented 1 month ago

@That-1-QA I missed the other ticket. Thank you. Will close this one