Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add operationName if more than 1 operation is in the document #3203

Open
2 tasks done
tho-graf opened this issue Sep 26, 2024 · 0 comments
Open
2 tasks done

Add operationName if more than 1 operation is in the document #3203

tho-graf opened this issue Sep 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tho-graf
Copy link

tho-graf commented Sep 26, 2024

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

Hi there,

I tried Bruno for the first time and found a bug.

I know from other tools that I can have more than one operation in my document.
When I do this with Bruno, I can't choose my operation to execute and Bruno doesn't add the operationName.

{
{
  "query": "query scenarios {\n  scenarios {\n    name\n  }\n}\n\nquery resources {\n  resources(first: 5) {\n    edges {\n      node {\n        displayName\n      }\n    }\n  }\n}\n",
  "variables": {}
}
}

Insomnia sends (which is correct) (at the ending the "operationName":"scenarios")

| {"query":"query scenaros {\n  scenarios {\n    name\n  }\n}\n\nquery resources {\n  resources(first: 5) {\n    edges {\n      node {\n        displayName\n      }\n    }\n  }\n}\n","operationName":"scenarios"}

This yields in an error - like it is defined in the specs

image

For me this sounds like a bug.

Cheers Thomas

.bru file to reproduce the bug

No response

Screenshots/Live demo link

see examples in the description

@tho-graf tho-graf added the bug Something isn't working label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant