title: Best way to construct a GraphQL query string in Python
body: <p>I'm trying to do this (see title), but it's a bit complicated since the string I'm trying to build has to have the following properties:</p>
  <ul>
  <li>mulitiline</li>
  <li>contains curly braces</li>
  <li>I want to inject variables into it</li>
  </ul>
  <p>Using a normal <code>''''''</code> multiline string makes injecting variables difficult. Using multiple f-strings makes injecting variables easy, but every curly brace, of which there are a lot, has to be doubled. And an <code>f</code> has to be prepended to each line. On the other hand, if I try using <code>format</code>, it also gets confused by all the curly braces.</p>
  <p>Is there a better way that I haven't considered yet?</p>