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

Curly brackets inside string are not properly parsed from variables input in sandbox #7877

Open
super16 opened this issue May 9, 2024 · 1 comment

Comments

@super16
Copy link

super16 commented May 9, 2024

Issue Description

Apollo server sandbox can't parse curly brackets inside string from variables input field. When requested from external client, curly brackets are parsed correctly, so I guess how the input is parsed causing the bug.

Link to Reproduction

https://github.com/super16/apollo-sandbox-bug-reproduction

Reproduction Steps

Minimal reproduction example with echo server from repo with reproduction.

query ExampleQuery($input: String) {
  hello(input: $input)
}

Variables

{
  "input": "{{foo}}"
}

Response

{
  "data": {
    "hello": ""
  }
}

Expected response

{
  "data": {
    "hello": "{{foo}}"
  }
}
@glasser
Copy link
Member

glasser commented May 9, 2024

I think this is the environment variables feature of Explorer, though I'm not sure if there's a way to turn it off (or restrict it only to defined environment variables).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants