     (when count      (.setCount qr count))
     (when consistent (.setConsistentRead qr consistent))
     (when after      (.setExclusiveStartKey qr (item-key after)))
-    ;; (when index      (.setIndexName qr index)) ; TODO
+    (when index      (.setIndexName qr index))
     qr))
 
 (defn- extract-range [[range options]]


(defn- query-request
  "Create a QueryRequest object."
  [table hash-key range-clause {:keys [order limit after count consistent attrs]}] ;; TODO +index
  (let [qr (QueryRequest.)
        hash-clause (set-hash-condition hash-key)
        [range-key operator range-value range-end] range-clause

    :read  - the provisioned number of reads per second
    :write - the provisioned number of writes per second

  The indexes vector is a vector of maps with keys:
    :name           - the name of the Local Secondary Index (required)
    :range-key      - a map that defines the range key name and type (required)
