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

[Bug]: GraphQL query variable interpolation "String cannot represent a non string value" #862

Open
1 task done
vasileermicioi opened this issue May 9, 2024 · 0 comments

Comments

@vasileermicioi
Copy link

vasileermicioi commented May 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Variable interpolation in the GraphQL queries is raising errors "String cannot represent a non string value".
But it works if I copy the same content (including the variable interpolation) in a temporary state, and put it in the graphql query.

This doesn't work
image

This works
image

Expected Behavior

GraphQL query to work with variable interpolations

Steps to reproduce

  1. Create a module
  2. Create a input continentCode
  3. Create a GraphQL query

url: https://countries.trevorblades.com/

body:
{
countries(filter: {continent: {eq: "{{continentCode.value}}"}}) {
code
name
capital
}
}
4) result
error "String cannot represent a non string value"

Environment

https://app.lowcoder.cloud/

Additional Information

No response

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

1 participant