     debug 'find', model, id if @debug
 
     aql = qb.for('retDoc').in('@@collection').filter(qb.eq("retDoc._key", '@id')).limit(1).return('retDoc')
-    bindVars = [
+    bindVars = {
       collection: @getCollectionName(model),
       id: id
-    ]
+    }
 
     @query aql, bindVars, (err, result) ->
       callback err if err

      return create_result


    @transaction @getCollectionName(model), action, [ id: id, data: data, collection: @getCollectionName(model) ], (err, result) ->
      callback err if err
      callback null, result



    @param [String] model The model name
    @param [Object] filter The filter
    @param [Function] callback Callback with (possible) error object or list of objects
  ###
  all: (model, filter, callback) =>
    all_aql = @_filter2query model, filter
