code: function addComparisonOperation(field, value, operator, authorizedTypes) {
    if (!isValidType(field, ['String'])) throw new TypeError('Invalid field');
    if (!isValidType(value, authorizedTypes)) throw new TypeError('Invalid value');
  
    this.operations.push({
      type: operator,
      field: field,
      value: value
    });
    return this;
  }
docs: Adds a comparison operation to the filter.
  
  @method addComparisonOperation
  @private
  @param {String} field The name of the field
  @param {String|Number|Boolean|Date} value The value to compare the field to
  @param {String} Resource filter operator
  @param {Array} The list of authorized types as strings
  @return {ResourceFilter} The actual filter
  @throws {TypeError} An error if field and / or value is not valid