     collection = @getCollectionName(model)
     collVariable = collection.charAt 0
 
-    bindVars = [
+    bindVars = {
       collection: collection
       id: id
-    ]
+    }
 
     # for .. in ..
     aql = qb.for('updateDoc').in('@@collection').filter('updateDoc._key','@id').update('updateDoc').with(data).in('@@collection').returnNew('result')

    debug 'delete', model, id if @debug

    aql = qb.for('removeDoc').in('@@collection').filter(qb.eq('removeDoc._key', '@id')).returnOld('removed')
    bindVars = [
      collection: @getCollectionName(model)
      id: id
    ]

    @query aql, bindVars, (err, result) ->
      callback err if err

    @param [String] model The model name
    @param [String] id The models id
    @param [Object] data The model data
    @param [Function] callback Callback with (possible) error object or the updated object
  ###
  updateAttributes: (model, id, data, cb) =>
    debug 'updateAttributes', model, id, data if @debug
