lib/relation.js
function() {
      var targetClass;
      var query;
      if (!this.targetClassName) {
        targetClass = Parse.Object._getSubclass(this.parent.className);
        query = new Parse.Query(targetClass);
        query._extraOptions.redirectClassNameForKey = this.key;
      } else {
        targetClass = Parse.Object._getSubclass(this.targetClassName);
        query = new Parse.Query(targetClass);
      }
      query._addCondition("$relatedTo", "object", this.parent._toPointer());
      query._addCondition("$relatedTo", "key", this.key);

      return query;
    }
function() {
      var targetClass;
      var query;
      if (!this.targetClassName) {
        targetClass = Parse.Object._getSubclass(this.parent.className);
        query = new Parse.Query(targetClass);
        query._extraOptions.redirectClassNameForKey = this.key;
      } else {
        targetClass = Parse.Object._getSubclass(this.targetClassName);
        query = new Parse.Query(targetClass);
      }
      query._addCondition("$relatedTo", "object", this.parent._toPointer());
      query._addCondition("$relatedTo", "key", this.key);

      return query;
    }
function ( ) { var targetClass ; var query ; if ( ! this . targetClassName ) { targetClass = Parse . Object . _getSubclass ( this . parent . className ) ; query = new Parse . Query ( targetClass ) ; query . _extraOptions . redirectClassNameForKey = this . key ; } else { targetClass = Parse . Object . _getSubclass ( this . targetClassName ) ; query = new Parse . Query ( targetClass ) ; } query . _addCondition ( "$relatedTo" , "object" , this . parent . _toPointer ( ) ) ; query . _addCondition ( "$relatedTo" , "key" , this . key ) ; return query ; }
Returns a Parse.Query that is limited to objects in this
relation.
@return {Parse.Query}
Returns a Parse . Query that is limited to objects in this relation .