docs: function(json, params, callback){
  
      // Parse the geometry
      var type = params.geometryType || 'esriGeometryEnvelope';
        delete params.geometryType;
      var geometry = this.parseGeometry( params.geometry , type );
        delete params.geometry;
  
      var spatialRel = params.spatialRel || 'esriSpatialRelContains';
      if ( this.spatialFilter[ spatialRel ] ){
        json.features = this.spatialFilter[spatialRel]( json.features, geometry);
      }
  
      // recycle the params after we run the geom filter
      this.filter( json, params, callback );
    }