title: How do you query using an index in the Architect Serverless Framework?
body: <p>I am trying to query using an index but keep getting this error:</p>
  <p><code>ValidationException: Query condition missed key schema element: trackID</code></p>
  <p>Here is my .arc file</p>
  <pre><code>@tables
  skytracks
    trackID *String
    _ttl TTL
  
  @indexes
  skytracks
    skyTrackType *String
  </code></pre>
  <p>Here is the relevant piece of the http get handler:</p>
  <pre><code>const skyTrackType = req.queryStringParameters.skytracktype
  const data = await arc.tables()
  const trackingData = await data.skytracks.query({
        KeyConditionExpression: `skyTrackType = :skyTrackType`,
        ExpressionAttributeValues: {
          ':skyTrackType': skyTrackType
        }
      })
  </code></pre>