Hi ,
I have attempted various methods to insert a variable as the value for a column, the “text39” column as shown in the Mutation query below, but I have been unsuccessful so far. Any help on this one
@Matias.Monday and @y-labyed the solution didn’t really solve the issue i was facing i.e. handling special characters (\t \r \n ) . But as per your suggestion @Matias.Monday I have filtered the string first before passing it to the mutation query . That worked .
But I’m still curious that there should be a way of passing the variable to the column directly.
This is the suggestion regarding the special characters:
You could in that case use a regex as explained here.
As an example:
const str = "\t- Decision making relating to the investigation authorized council staff or the Council itself. \n\t-\n";console.log(str.replace(/[^a-zA-Z ]/g, ""));
The log will show: Decision making relating to the investigation authorized council staff or the Council itself
So, you can use something like this to filter the special characters from your string, and then pass the filtered string to the text column.
Thank you mathias,
this trick probably works, but the result is the same for us.
i mean, we wanted as “[mbirshad]” asked, to pass variable directly in the graphQL order and not the value.
But i understand, it’s not possible at the moment !