Valentin B.
11/19/2024, 2:36 PMval FeedbackMutation = """mutation InsertFeedback($question2Rating: Int, $comment: String) {
insert_feedback_one(object: {question2Rating: $question2Rating, comment: $comment}) {
__typename
}
}
"""
The problem arises because $question2Rating
and $comment
in the query conflict with Kotlin's string interpolation syntax.
What’s the best way to handle such cases? Are there any workarounds you’d recommend for escaping or managing this behavior effectively?Valentin B.
11/19/2024, 2:36 PMmbonnin
11/19/2024, 2:51 PM"""I am a ${'$'} sign"""
mbonnin
11/19/2024, 2:53 PMValentin B.
11/19/2024, 2:59 PMmbonnin
11/19/2024, 3:01 PMmbonnin
11/19/2024, 3:02 PM"""I am a $dollar sign"""
But it's the same thing reallymbonnin
11/19/2024, 3:03 PM${'$'}
Valentin B.
11/19/2024, 3:19 PM