lib/query.js
function(objectId, options) {
      var self = this;
      self.equalTo('objectId', objectId);

      var firstOptions = {};
      if (options && _.has(options, 'useMasterKey')) {
        firstOptions = { useMasterKey: options.useMasterKey };
      }

      return self.first(firstOptions).then(function(response) {
        if (response) {
          return response;
        }

        var errorObject = new Parse.Error(Parse.Error.OBJECT_NOT_FOUND,
                                          "Object not found.");
        return Parse.Promise.error(errorObject);

      })._thenRunCallbacks(options, null);
    }
function(objectId, options) {
      var self = this;
      self.equalTo('objectId', objectId);

      var firstOptions = {};
      if (options && _.has(options, 'useMasterKey')) {
        firstOptions = { useMasterKey: options.useMasterKey };
      }

      return self.first(firstOptions).then(function(response) {
        if (response) {
          return response;
        }

        var errorObject = new Parse.Error(Parse.Error.OBJECT_NOT_FOUND,
                                          "Object not found.");
        return Parse.Promise.error(errorObject);

      })._thenRunCallbacks(options, null);
    }
function ( objectId , options ) { var self = this ; self . equalTo ( 'objectId' , objectId ) ; var firstOptions = { } ; if ( options && _ . has ( options , 'useMasterKey' ) ) { firstOptions = { useMasterKey : options . useMasterKey } ; } return self . first ( firstOptions ) . then ( function ( response ) { if ( response ) { return response ; } var errorObject = new Parse . Error ( Parse . Error . OBJECT_NOT_FOUND , "Object not found." ) ; return Parse . Promise . error ( errorObject ) ; } ) . _thenRunCallbacks ( options , null ) ; }
Constructs a Parse.Object whose id is already known by fetching data from
the server.  Either options.success or options.error is called when the
find completes.

@param {String} objectId The id of the object to be fetched.
@param {Object} options A Backbone-style options object.
Valid options are:<ul>
<li>success: A Backbone-style success callback
<li>error: An Backbone-style error callback.
<li>useMasterKey: In Cloud Code and Node only, causes the Master Key to
be used for this request.
</ul>
Constructs a Parse . Object whose id is already known by fetching data from the server . Either options . success or options . error is called when the find completes .