lowcoder icon indicating copy to clipboard operation
lowcoder copied to clipboard

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

Open vasileermicioi opened this issue 1 year ago • 0 comments
trafficstars

Is there an existing issue for this?

  • [X] 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

vasileermicioi avatar May 09 '24 13:05 vasileermicioi