title: ArangoDB Dynamic AQL String Handler
body: <p>Is it possible to use the aql string handler in ArangoDB to perform a dynamic query? I've tried a number of different ways but it always errors out. For example, I'd like to do something like this:</p>
  
  <pre><code>let sortExpression = sortByDate ? 'SORT ${date}' : `SORT ${name}`
  
  const result = db._query(aql`
      FOR doc IN tickets
      ${sortExpression}
      RETURN doc
  `)
  </code></pre>
  
  <p>This example is very simplified, but I have a more complex situation where something like this would be really handy. Is there a way to make something like this work?</p>