openblocks-dev / openblocks

🔥 🔥 🔥 The Open Source Retool Alternative
https://cloud.openblocks.dev
GNU Affero General Public License v3.0
5.8k stars 349 forks source link

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

Open florentina-tache opened 1 year ago

florentina-tache commented 1 year ago

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