   return only the first value.
 
   Type conversion overrides must be a map using keys present in
-  `uruk.core/xcc-type->conv-fn` and conform to use in `convert-types`,
-  that is, including values which are a function of one variable."
+  `uruk.core/xml-type-str->conv-fn` and conform to use in
+  `convert-types`, that is, including values which are a function of
+  one variable."
   ([session query]
    (execute-xquery session query {}))
   ([session query {:keys [options variables types shape]}]

  MarkLogic query result sequence. Default type mappings can be
  overridden (in part or in whole) with the optional parameter
  `type-mapping`, which should contain a transformation function keyed
  by an XCC type string. See `xcc-type->conv-fn` above."
  [result-sequence & [type-mapping]]
  ;; TODO throw informative exception if type not found in types
  (map (fn [item] (((merge xcc-type->conv-fn
                          (when (map? type-mapping)
                            type-mapping))
                   (.toString (.getValueType item))) item))

                                      (variable-types type)
                                      (if as-is?
                                        value
                                        ((xcc-type->xdm-conv-fn type) value)))
                     (.setNewVariable acc (name vname)
                                      (variable-types type)
                                      (if as-is?
                                        value
                                        ((xcc-type->xdm-conv-fn type) value))))))
               acc)
             (doto request-factory (.setOptions (make-request-options options)))
             variables))
