title: How to Make a ShopifyQL query?
body: <p>Shopify recently announced <a href="https://shopify.dev/api/shopifyql" rel="nofollow noreferrer">ShopifyQL</a> for easier accessing of analytics data. However, I'm unclear of how to actually make a ShopifyQL call. They do include an <a href="https://shopify.dev/api/shopifyql/example" rel="nofollow noreferrer">example</a>.</p>
  <pre><code>{
    # &quot;FROM sales SHOW total_sales BY month SINCE -1y UNTIL today&quot; passes a ShopifyQL query to the GraphQL query.
    shopifyqlQuery(query: &quot;FROM sales SHOW total_sales BY month SINCE -1y UNTIL today&quot;) {
      __typename
      ... on TableResponse {
        tableData {
          rowData
          columns {
            # Elements in the columns section describe which column properties you want to return.
            name
            dataType
            displayName
          }
        }
      }
      # parseErrors specifies that you want errors returned, if there were any, and which error properties you want to return.
      parseErrors {
        code
        message
        range {
          start {
            line
            character
          }
          end {
            line
            character
          }
        }
      }
    }
  }
  </code></pre>
  <p>However, using the <a href="https://shopify.dev/apps/tools/graphiql-admin-api" rel="nofollow noreferrer">GraphiQL</a> tool to run the query hits a number of errors:</p>
  <pre><code>{
    &quot;errors&quot;: [
      {
        &quot;message&quot;: &quot;Field 'shopifyqlQuery' doesn't exist on type 'QueryRoot'&quot;,
        &quot;locations&quot;: [
          {
            &quot;line&quot;: 3,
            &quot;column&quot;: 3
          }
        ],
        &quot;path&quot;: [
          &quot;query&quot;,
          &quot;shopifyqlQuery&quot;
        ],
        &quot;extensions&quot;: {
          &quot;code&quot;: &quot;undefinedField&quot;,
          &quot;typeName&quot;: &quot;QueryRoot&quot;,
          &quot;fieldName&quot;: &quot;shopifyqlQuery&quot;
        }
      }
    ]
  }
  
  </code></pre>
  <p>I also tried making an authenticated call with the example query above using my app's Node server, but ran into the same issues.</p>
  <p>What am I missing here?</p>