@@ -367,20 +367,14 @@ describe('Execute: defer directive', () => {
367
367
} ,
368
368
id : '0' ,
369
369
} ,
370
- ] ,
371
- completed : [ { id : '0' } ] ,
372
- hasNext : true ,
373
- } ,
374
- {
375
- incremental : [
376
370
{
377
371
data : {
378
372
friends : [ { name : 'Han' } , { name : 'Leia' } , { name : 'C-3PO' } ] ,
379
373
} ,
380
374
id : '1' ,
381
375
} ,
382
376
] ,
383
- completed : [ { id : '1' } ] ,
377
+ completed : [ { id : '0' } , { id : ' 1' } ] ,
384
378
hasNext : false ,
385
379
} ,
386
380
] ) ;
@@ -732,20 +726,14 @@ describe('Execute: defer directive', () => {
732
726
} ,
733
727
id : '0' ,
734
728
} ,
735
- ] ,
736
- completed : [ { id : '0' } ] ,
737
- hasNext : true ,
738
- } ,
739
- {
740
- incremental : [
741
729
{
742
730
data : {
743
731
id : '1' ,
744
732
} ,
745
733
id : '1' ,
746
734
} ,
747
735
] ,
748
- completed : [ { id : '1' } ] ,
736
+ completed : [ { id : '0' } , { id : ' 1' } ] ,
749
737
hasNext : false ,
750
738
} ,
751
739
] ) ;
@@ -909,20 +897,14 @@ describe('Execute: defer directive', () => {
909
897
} ,
910
898
id : '0' ,
911
899
} ,
912
- ] ,
913
- completed : [ { id : '0' } ] ,
914
- hasNext : true ,
915
- } ,
916
- {
917
- incremental : [
918
900
{
919
901
data : {
920
902
bar : 'bar' ,
921
903
} ,
922
904
id : '1' ,
923
905
} ,
924
906
] ,
925
- completed : [ { id : '1' } ] ,
907
+ completed : [ { id : '0' } , { id : ' 1' } ] ,
926
908
hasNext : false ,
927
909
} ,
928
910
] ) ;
@@ -983,37 +965,27 @@ describe('Execute: defer directive', () => {
983
965
hasNext : true ,
984
966
} ,
985
967
{
986
- pending : [ { id : '1' , path : [ 'hero' , 'nestedObject' ] } ] ,
968
+ pending : [
969
+ { id : '1' , path : [ 'hero' , 'nestedObject' ] } ,
970
+ { id : '2' , path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ,
971
+ ] ,
987
972
incremental : [
988
973
{
989
974
data : { bar : 'bar' } ,
990
975
id : '0' ,
991
976
subPath : [ 'nestedObject' , 'deeperObject' ] ,
992
977
} ,
993
- ] ,
994
- completed : [ { id : '0' } ] ,
995
- hasNext : true ,
996
- } ,
997
- {
998
- pending : [ { id : '2' , path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ] ,
999
- incremental : [
1000
978
{
1001
979
data : { baz : 'baz' } ,
1002
980
id : '1' ,
1003
981
subPath : [ 'deeperObject' ] ,
1004
982
} ,
1005
- ] ,
1006
- completed : [ { id : '1' } ] ,
1007
- hasNext : true ,
1008
- } ,
1009
- {
1010
- incremental : [
1011
983
{
1012
984
data : { bak : 'bak' } ,
1013
985
id : '2' ,
1014
986
} ,
1015
987
] ,
1016
- completed : [ { id : '2' } ] ,
988
+ completed : [ { id : '0' } , { id : '1' } , { id : ' 2' } ] ,
1017
989
hasNext : false ,
1018
990
} ,
1019
991
] ) ;
@@ -2080,17 +2052,11 @@ describe('Execute: defer directive', () => {
2080
2052
data : { name : 'slow' , friends : [ { } , { } , { } ] } ,
2081
2053
id : '0' ,
2082
2054
} ,
2083
- ] ,
2084
- completed : [ { id : '0' } ] ,
2085
- hasNext : true ,
2086
- } ,
2087
- {
2088
- incremental : [
2089
2055
{ data : { name : 'Han' } , id : '1' } ,
2090
2056
{ data : { name : 'Leia' } , id : '2' } ,
2091
2057
{ data : { name : 'C-3PO' } , id : '3' } ,
2092
2058
] ,
2093
- completed : [ { id : '1' } , { id : '2' } , { id : '3' } ] ,
2059
+ completed : [ { id : '0' } , { id : ' 1' } , { id : '2' } , { id : '3' } ] ,
2094
2060
hasNext : false ,
2095
2061
} ,
2096
2062
] ) ;
@@ -2136,17 +2102,11 @@ describe('Execute: defer directive', () => {
2136
2102
} ,
2137
2103
id : '0' ,
2138
2104
} ,
2139
- ] ,
2140
- completed : [ { id : '0' } ] ,
2141
- hasNext : true ,
2142
- } ,
2143
- {
2144
- incremental : [
2145
2105
{ data : { name : 'Han' } , id : '1' } ,
2146
2106
{ data : { name : 'Leia' } , id : '2' } ,
2147
2107
{ data : { name : 'C-3PO' } , id : '3' } ,
2148
2108
] ,
2149
- completed : [ { id : '1' } , { id : '2' } , { id : '3' } ] ,
2109
+ completed : [ { id : '0' } , { id : ' 1' } , { id : '2' } , { id : '3' } ] ,
2150
2110
hasNext : false ,
2151
2111
} ,
2152
2112
] ) ;
0 commit comments