Skip to content

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

@vasileermicioi

Description

@vasileermicioi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions