openblocks-dev / openblocks

🔥 🔥 🔥 The Open Source Retool Alternative

Home Page:https://cloud.openblocks.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Wrong data format when sending data in GraphQL Query

florentina-tache opened this issue · comments

When using GraphQL Query, the data access a value from an input it will not send it as a string and as a result the query will fail, and the only way I found to send the data is like this {{JSON.stringify(input.value)}}
image
image

Also, when trying to send a JSON object, whose value I get from the JSON Editor Component, I get this:
image

So the only way to send it that worked for me is to send it like {{JSON.stringify(JSON.stringify(jsonInput.value))}}, but this implies that the server would need to accept a string instead of an object