src/filter-collection.js
function (style, exportAsString) {
    var self = this;

    var result;
    switch (style) {
      case "mongo":
      case "mongodb":
      default:
        var mongoParser = new Backgrid.Extension.AdvancedFilter.FilterParsers.MongoParser();
        result = mongoParser.parse(self);

        if (exportAsString) {
          result = self.stringifyFilterJson(result);
        }
    }
    return result;
  }
function (style, exportAsString) {
    var self = this;

    var result;
    switch (style) {
      case "mongo":
      case "mongodb":
      default:
        var mongoParser = new Backgrid.Extension.AdvancedFilter.FilterParsers.MongoParser();
        result = mongoParser.parse(self);

        if (exportAsString) {
          result = self.stringifyFilterJson(result);
        }
    }
    return result;
  }
function ( style , exportAsString ) { var self = this ; var result ; switch ( style ) { case "mongo" : case "mongodb" : default : var mongoParser = new Backgrid . Extension . AdvancedFilter . FilterParsers . MongoParser ( ) ; result = mongoParser . parse ( self ) ; if ( exportAsString ) { result = self . stringifyFilterJson ( result ) ; } } return result ; }
Export the filter for a given style
@method exportFilter
@param {String} style. Values: "(mongo|mongodb), ..."
@param {boolean} exportAsString exports as a string if true.
@return {Object}
Export the filter for a given style