src/search.js
function() {
        var self = this;

        var request = this._createRequest();

        return request.then(function(response) {
          //update sid for next querying.
          if (response.sid) {
            self._oldSid = self._sid;
            self._sid = response.sid;
          } else {
            self._sid = null;
            self._hitEnd = true;
          }
          self._hits = response.hits || 0;

          return _.map(response.results, function(json) {
            if (json.className) {
              response.className = json.className;
            }
            var obj = self._newObject(response);
            obj.appURL = json['_app_url'];
            obj._finishFetch(self._processResult(json), true);
            return obj;
          });
        });
      }
function() {
        var self = this;

        var request = this._createRequest();

        return request.then(function(response) {
          //update sid for next querying.
          if (response.sid) {
            self._oldSid = self._sid;
            self._sid = response.sid;
          } else {
            self._sid = null;
            self._hitEnd = true;
          }
          self._hits = response.hits || 0;

          return _.map(response.results, function(json) {
            if (json.className) {
              response.className = json.className;
            }
            var obj = self._newObject(response);
            obj.appURL = json['_app_url'];
            obj._finishFetch(self._processResult(json), true);
            return obj;
          });
        });
      }
function ( ) { var self = this ; var request = this . _createRequest ( ) ; return request . then ( function ( response ) { //update sid for next querying. if ( response . sid ) { self . _oldSid = self . _sid ; self . _sid = response . sid ; } else { self . _sid = null ; self . _hitEnd = true ; } self . _hits = response . hits || 0 ; return _ . map ( response . results , function ( json ) { if ( json . className ) { response . className = json . className ; } var obj = self . _newObject ( response ) ; obj . appURL = json [ '_app_url' ] ; obj . _finishFetch ( self . _processResult ( json ) , true ) ; return obj ; } ) ; } ) ; }
Retrieves a list of AVObjects that satisfy this query.
Either options.success or options.error is called when the find
completes.

@see AV.Query#find
@return {Promise} A promise that is resolved with the results when
the query completes.
Retrieves a list of AVObjects that satisfy this query . Either options . success or options . error is called when the find completes .