Notice this question is related to: Compose GraphQL for monday.com
But this question only focus on the concatenation part.
I have following string:
var query = @"{""query"": ""mutation {create_item(board_id: 111, group_id:\""new_group\"", item_name: \""adding works\"", column_values: \"" {\\\""long_text\\\"": { \\\""text\\\"": \\\""Sample text\\\""}} \"") {id} }"" }";
I want to build this string dynamically. But I don't know to.
I tried:
var query = @"{""query"": ""mutation {create_item(board_id: 111, group_id:\""new_group\"", item_name: \""adding works\"", column_values: \"" {\\\""long_text\\\"": { \\\""text\\\"": \\\"""+"SOME TEXT HERE"+"\\\""}} \"") {id} }"" }";
Is there some guideline to concatenate strings with so many escapes?