code: function transform(name, params) {
    if (name == null) {
      throw new Error('transform without name');
    }
  
    var transformList = [name];
    if (params != null) {
      transformList.push(params);
    }
  
    return {'document-transform': transformList};
  }
docs: Specifies a transform for the documents or summary returned by a query
  or the tuples list returned by a values query.
  The transform must have been installed previously by
  the {@link config.transforms#write} function
  @method
  @since 1.0
  @memberof queryBuilder#
  @param {string} name - the name of the transform
  @param {object} [params] - the parameters of the transform
  as key-value pairs
  @returns {object} a transform definition
  for the {@link queryBuilder#slice} function