Graphql incorrect request after import from Curl

Bug
After importing a request from Curl and changing the type from JSON to GQL, sent requests have an invalid request body: {"query":""}. Making the variables field dirty (changing it in any way) fixes this.
Reproduction:
- Copy any GQL request as Curl:
curl 'https://gui-api-alpha.recombee.net/graphql?o=AccountScreenUpdateCurrentUserMutation' \ -X POST \ -H 'content-type: application/json' \ --data-raw $'{"operationName":"AccountScreenUpdateCurrentUserMutation","query":"mutation AccountScreenUpdateCurrentUserMutation($input: CurrentAdminInput\041) {\\n updateCurrentAdmin(input: $input) {\\n id\\n lastLoginAt\\n email\\n fullName\\n createdAt\\n ultimateAdminPermissions\\n picture\\n role\\n __typename\\n }\\n __typename\\n}","variables":{"input":{"fullName":"Daniel Breiner","role":"ENGINEER"}}}' - Import from Curl
- Change type from JSON to GraphQL
- Click send - the request will fail. You can look at the sent request - it is not valid (
{"query":""}) - You can work around the issue by changing the variables in any way (add/remove/also copy and paste the same contents works)
macOSv2026.2.0; 2026.2.0-beta.11
Ah thank you for reporting! I’ve had a few people mention empty queries but was never able to reproduce. I think the curl import piece is what I was missing.