@@ -679,7 +679,6 @@ describe('Execute: defer directive', () => {
679
679
hasNext : true ,
680
680
} ,
681
681
{
682
- pending : [ { path : [ 'hero' ] , label : 'DeferID' } ] ,
683
682
incremental : [
684
683
{
685
684
data : {
@@ -689,20 +688,17 @@ describe('Execute: defer directive', () => {
689
688
} ,
690
689
path : [ ] ,
691
690
} ,
692
- ] ,
693
- completed : [ { path : [ ] , label : 'DeferName' } ] ,
694
- hasNext : true ,
695
- } ,
696
- {
697
- incremental : [
698
691
{
699
692
data : {
700
693
id : '1' ,
701
694
} ,
702
695
path : [ 'hero' ] ,
703
696
} ,
704
697
] ,
705
- completed : [ { path : [ 'hero' ] , label : 'DeferID' } ] ,
698
+ completed : [
699
+ { path : [ ] , label : 'DeferName' } ,
700
+ { path : [ 'hero' ] , label : 'DeferID' } ,
701
+ ] ,
706
702
hasNext : false ,
707
703
} ,
708
704
] ) ;
@@ -870,7 +866,6 @@ describe('Execute: defer directive', () => {
870
866
hasNext : true ,
871
867
} ,
872
868
{
873
- pending : [ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ] ,
874
869
incremental : [
875
870
{
876
871
data : {
@@ -880,20 +875,17 @@ describe('Execute: defer directive', () => {
880
875
} ,
881
876
path : [ 'hero' ] ,
882
877
} ,
883
- ] ,
884
- completed : [ { path : [ 'hero' ] } ] ,
885
- hasNext : true ,
886
- } ,
887
- {
888
- incremental : [
889
878
{
890
879
data : {
891
880
bar : 'bar' ,
892
881
} ,
893
882
path : [ 'hero' , 'nestedObject' , 'deeperObject' ] ,
894
883
} ,
895
884
] ,
896
- completed : [ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ] ,
885
+ completed : [
886
+ { path : [ 'hero' ] } ,
887
+ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ,
888
+ ] ,
897
889
hasNext : false ,
898
890
} ,
899
891
] ) ;
@@ -948,35 +940,25 @@ describe('Execute: defer directive', () => {
948
940
hasNext : true ,
949
941
} ,
950
942
{
951
- pending : [ { path : [ 'hero' , 'nestedObject' ] } ] ,
952
943
incremental : [
953
944
{
954
945
data : { bar : 'bar' } ,
955
946
path : [ 'hero' , 'nestedObject' , 'deeperObject' ] ,
956
947
} ,
957
- ] ,
958
- completed : [ { path : [ 'hero' ] } ] ,
959
- hasNext : true ,
960
- } ,
961
- {
962
- pending : [ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ] ,
963
- incremental : [
964
948
{
965
949
data : { baz : 'baz' } ,
966
950
path : [ 'hero' , 'nestedObject' , 'deeperObject' ] ,
967
951
} ,
968
- ] ,
969
- hasNext : true ,
970
- completed : [ { path : [ 'hero' , 'nestedObject' ] } ] ,
971
- } ,
972
- {
973
- incremental : [
974
952
{
975
953
data : { bak : 'bak' } ,
976
954
path : [ 'hero' , 'nestedObject' , 'deeperObject' ] ,
977
955
} ,
978
956
] ,
979
- completed : [ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ] ,
957
+ completed : [
958
+ { path : [ 'hero' ] } ,
959
+ { path : [ 'hero' , 'nestedObject' ] } ,
960
+ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ,
961
+ ] ,
980
962
hasNext : false ,
981
963
} ,
982
964
] ) ;
@@ -1023,31 +1005,25 @@ describe('Execute: defer directive', () => {
1023
1005
hasNext : true ,
1024
1006
} ,
1025
1007
{
1026
- pending : [ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ] ,
1027
1008
incremental : [
1028
1009
{
1029
1010
data : {
1030
1011
foo : 'foo' ,
1031
1012
} ,
1032
1013
path : [ 'hero' , 'nestedObject' , 'deeperObject' ] ,
1033
1014
} ,
1034
- ] ,
1035
- completed : [
1036
- { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ,
1037
- { path : [ 'hero' ] } ,
1038
- ] ,
1039
- hasNext : true ,
1040
- } ,
1041
- {
1042
- incremental : [
1043
1015
{
1044
1016
data : {
1045
1017
bar : 'bar' ,
1046
1018
} ,
1047
1019
path : [ 'hero' , 'nestedObject' , 'deeperObject' ] ,
1048
1020
} ,
1049
1021
] ,
1050
- completed : [ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ] ,
1022
+ completed : [
1023
+ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ,
1024
+ { path : [ 'hero' ] } ,
1025
+ { path : [ 'hero' , 'nestedObject' , 'deeperObject' ] } ,
1026
+ ] ,
1051
1027
hasNext : false ,
1052
1028
} ,
1053
1029
] ) ;
@@ -1843,27 +1819,17 @@ describe('Execute: defer directive', () => {
1843
1819
hasNext : true ,
1844
1820
} ,
1845
1821
{
1846
- pending : [
1847
- { path : [ 'hero' , 'friends' , 0 ] } ,
1848
- { path : [ 'hero' , 'friends' , 1 ] } ,
1849
- { path : [ 'hero' , 'friends' , 2 ] } ,
1850
- ] ,
1851
1822
incremental : [
1852
1823
{
1853
1824
data : { name : 'slow' , friends : [ { } , { } , { } ] } ,
1854
1825
path : [ 'hero' ] ,
1855
1826
} ,
1856
- ] ,
1857
- completed : [ { path : [ 'hero' ] } ] ,
1858
- hasNext : true ,
1859
- } ,
1860
- {
1861
- incremental : [
1862
1827
{ data : { name : 'Han' } , path : [ 'hero' , 'friends' , 0 ] } ,
1863
1828
{ data : { name : 'Leia' } , path : [ 'hero' , 'friends' , 1 ] } ,
1864
1829
{ data : { name : 'C-3PO' } , path : [ 'hero' , 'friends' , 2 ] } ,
1865
1830
] ,
1866
1831
completed : [
1832
+ { path : [ 'hero' ] } ,
1867
1833
{ path : [ 'hero' , 'friends' , 0 ] } ,
1868
1834
{ path : [ 'hero' , 'friends' , 1 ] } ,
1869
1835
{ path : [ 'hero' , 'friends' , 2 ] } ,
@@ -1900,11 +1866,6 @@ describe('Execute: defer directive', () => {
1900
1866
hasNext : true ,
1901
1867
} ,
1902
1868
{
1903
- pending : [
1904
- { path : [ 'hero' , 'friends' , 0 ] } ,
1905
- { path : [ 'hero' , 'friends' , 1 ] } ,
1906
- { path : [ 'hero' , 'friends' , 2 ] } ,
1907
- ] ,
1908
1869
incremental : [
1909
1870
{
1910
1871
data : {
@@ -1913,17 +1874,12 @@ describe('Execute: defer directive', () => {
1913
1874
} ,
1914
1875
path : [ 'hero' ] ,
1915
1876
} ,
1916
- ] ,
1917
- completed : [ { path : [ 'hero' ] } ] ,
1918
- hasNext : true ,
1919
- } ,
1920
- {
1921
- incremental : [
1922
1877
{ data : { name : 'Han' } , path : [ 'hero' , 'friends' , 0 ] } ,
1923
1878
{ data : { name : 'Leia' } , path : [ 'hero' , 'friends' , 1 ] } ,
1924
1879
{ data : { name : 'C-3PO' } , path : [ 'hero' , 'friends' , 2 ] } ,
1925
1880
] ,
1926
1881
completed : [
1882
+ { path : [ 'hero' ] } ,
1927
1883
{ path : [ 'hero' , 'friends' , 0 ] } ,
1928
1884
{ path : [ 'hero' , 'friends' , 1 ] } ,
1929
1885
{ path : [ 'hero' , 'friends' , 2 ] } ,
0 commit comments