File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3684,8 +3684,8 @@ describe('Parse.Query testing', () => {
36843684 } ) ;
36853685 } ) ;
36863686
3687- it ( " includeAll" , ( done ) => {
3688- const child1 = new TestObject ( { foo : 'bar' , name : 'al ' } ) ;
3687+ it ( ' includeAll' , ( done ) => {
3688+ const child1 = new TestObject ( { foo : 'bar' , name : 'ac ' } ) ;
36893689 const child2 = new TestObject ( { foo : 'baz' , name : 'flo' } ) ;
36903690 const child3 = new TestObject ( { foo : 'bad' , name : 'mo' } ) ;
36913691 const parent = new Container ( { child1, child2, child3 } ) ;
@@ -3702,7 +3702,7 @@ describe('Parse.Query testing', () => {
37023702 equal ( result . child1 . foo , 'bar' ) ;
37033703 equal ( result . child2 . foo , 'baz' ) ;
37043704 equal ( result . child3 . foo , 'bad' ) ;
3705- equal ( result . child1 . name , 'al ' ) ;
3705+ equal ( result . child1 . name , 'ac ' ) ;
37063706 equal ( result . child2 . name , 'flo' ) ;
37073707 equal ( result . child3 . name , 'mo' ) ;
37083708 done ( ) ;
Original file line number Diff line number Diff line change @@ -558,6 +558,7 @@ RestQuery.prototype.runCount = function() {
558558 } ) ;
559559} ;
560560
561+ // Augments this.response with all pointers on an object
561562RestQuery . prototype . handleIncludeAll = function ( ) {
562563 if ( ! this . includeAll ) {
563564 return ;
@@ -575,6 +576,7 @@ RestQuery.prototype.handleIncludeAll = function() {
575576 }
576577 // Add fields to include, keys, remove dups
577578 this . include = [ ...new Set ( [ ...this . include , ...includeFields ] ) ] ;
579+ // if this.keys not set, then all keys are already included
578580 if ( this . keys ) {
579581 this . keys = [ ...new Set ( [ ...this . keys , ...keyFields ] ) ] ;
580582 }
You can’t perform that action at this time.
0 commit comments