Compose the GraphQL query with variables instead of string interpolation. Variables keep the query static and move the values into a variables object, which sidesteps the double-escaping problem entirely and makes dynamic queries far easier to read.

Context: Stack Overflow question: building a framework around the monday.com API, the raw mutation string requires painful double-escaping of quotes inside JSON.