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

Query name incorrectly calculated in GQL query #7455

Closed
1 task done
lstrzebinczyk opened this issue May 27, 2024 · 3 comments
Closed
1 task done

Query name incorrectly calculated in GQL query #7455

lstrzebinczyk opened this issue May 27, 2024 · 3 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@lstrzebinczyk
Copy link

Expected Behavior

If a GQL query has a name, it gets extracted to and sent as queryName param.

Actual Behavior

If I send q GQL query with a query name, then remove the query name from query, the queryName param is still sent with incorrect value. This causes issues down the line.

First, sending a correct query and seeing correct response:
bug_before_change

Then remove the query name and still se it being sent in the additional param:
bug-after-change

Reproduction Steps

  1. Send any GQL query with a query name
  2. Remove query name from the query

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

9.2.0

What operating system are you using?

Ubuntu

Operating System Version

Ubuntu 22.04.4 LTS

Installation method

download from insomnia.rest

Last Known Working Insomnia version

Unsure. I'm told "previous".

@lstrzebinczyk lstrzebinczyk added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels May 27, 2024
@ihexxa
Copy link
Contributor

ihexxa commented Jun 7, 2024

Hello @lstrzebinczyk , if possible, could you provide a minimal export file to reproduce it? I tried but was unable to reproduce it.

@ihexxa
Copy link
Contributor

ihexxa commented Jun 11, 2024

I'm able to reproduce this and will create a fix for it.

@lstrzebinczyk
Copy link
Author

Awesome, thank you: )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

2 participants