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

        var params = this.toJSON();
        params.limit = 1;
        var request = this._createRequest(params, options);

        return request.then(function(response) {
          return _.map(response.results, function(json) {
            var obj = self._newObject();
            if (obj._finishFetch) {
              obj._finishFetch(self._processResult(json), true);
            }
            return obj;
          })[0];
        });
      }
function(options) {
        var self = this;

        var params = this.toJSON();
        params.limit = 1;
        var request = this._createRequest(params, options);

        return request.then(function(response) {
          return _.map(response.results, function(json) {
            var obj = self._newObject();
            if (obj._finishFetch) {
              obj._finishFetch(self._processResult(json), true);
            }
            return obj;
          })[0];
        });
      }
function ( options ) { var self = this ; var params = this . toJSON ( ) ; params . limit = 1 ; var request = this . _createRequest ( params , options ) ; return request . then ( function ( response ) { return _ . map ( response . results , function ( json ) { var obj = self . _newObject ( ) ; if ( obj . _finishFetch ) { obj . _finishFetch ( self . _processResult ( json ) , true ) ; } return obj ; } ) [ 0 ] ; } ) ; }
Retrieves at most one AV.Object that satisfies this query.

@param {AuthOptions} options
@return {Promise} A promise that is resolved with the object when
the query completes.
Retrieves at most one AV . Object that satisfies this query .