@@ -424,7 +424,7 @@ GraphQLSchema {
424
424
}
425
425
` ;
426
426
427
- exports [` forward nested mutation during update 2 ` ] = `
427
+ exports [` forward nested mutation with nested update 1 ` ] = `
428
428
GraphQLSchema {
429
429
" __allowedLegacyNames" : Array [],
430
430
" __validationErrors" : undefined ,
@@ -436,72 +436,66 @@ GraphQLSchema {
436
436
" _implementations" : Object {
437
437
" Node" : Array [
438
438
" Query" ,
439
- " User " ,
440
- " UserPrivate " ,
439
+ " Child " ,
440
+ " Parent " ,
441
441
],
442
442
},
443
443
" _mutationType" : " Mutation" ,
444
444
" _possibleTypeMap" : undefined ,
445
445
" _queryType" : " Query" ,
446
446
" _subscriptionType" : undefined ,
447
447
" _typeMap" : Object {
448
- " BigInt" : " BigInt" ,
449
448
" Boolean" : " Boolean" ,
450
- " CreateUserInput" : " CreateUserInput" ,
451
- " CreateUserPayload" : " CreateUserPayload" ,
452
- " CreateUserPrivateInput" : " CreateUserPrivateInput" ,
453
- " CreateUserPrivatePayload" : " CreateUserPrivatePayload" ,
449
+ " Child" : " Child" ,
450
+ " ChildChildPkeyConnect" : " ChildChildPkeyConnect" ,
451
+ " ChildCondition" : " ChildCondition" ,
452
+ " ChildInput" : " ChildInput" ,
453
+ " ChildNodeIdConnect" : " ChildNodeIdConnect" ,
454
+ " ChildOnChildForChildParentFkeyNodeIdUpdate" : " ChildOnChildForChildParentFkeyNodeIdUpdate" ,
455
+ " ChildOnChildForChildParentFkeyUsingChildPkeyUpdate" : " ChildOnChildForChildParentFkeyUsingChildPkeyUpdate" ,
456
+ " ChildParentFkeyChildCreateInput" : " ChildParentFkeyChildCreateInput" ,
457
+ " ChildParentFkeyInput" : " ChildParentFkeyInput" ,
458
+ " ChildParentFkeyInverseInput" : " ChildParentFkeyInverseInput" ,
459
+ " ChildParentFkeyParentCreateInput" : " ChildParentFkeyParentCreateInput" ,
460
+ " ChildPatch" : " ChildPatch" ,
461
+ " ChildrenConnection" : " ChildrenConnection" ,
462
+ " ChildrenEdge" : " ChildrenEdge" ,
463
+ " ChildrenOrderBy" : " ChildrenOrderBy" ,
464
+ " CreateChildInput" : " CreateChildInput" ,
465
+ " CreateChildPayload" : " CreateChildPayload" ,
466
+ " CreateParentInput" : " CreateParentInput" ,
467
+ " CreateParentPayload" : " CreateParentPayload" ,
454
468
" Cursor" : " Cursor" ,
455
- " DeleteUserByIdInput" : " DeleteUserByIdInput" ,
456
- " DeleteUserByUsernameInput" : " DeleteUserByUsernameInput" ,
457
- " DeleteUserInput" : " DeleteUserInput" ,
458
- " DeleteUserPayload" : " DeleteUserPayload" ,
459
- " DeleteUserPrivateByIdInput" : " DeleteUserPrivateByIdInput" ,
460
- " DeleteUserPrivateInput" : " DeleteUserPrivateInput" ,
461
- " DeleteUserPrivatePayload" : " DeleteUserPrivatePayload" ,
469
+ " DeleteChildByIdInput" : " DeleteChildByIdInput" ,
470
+ " DeleteChildInput" : " DeleteChildInput" ,
471
+ " DeleteChildPayload" : " DeleteChildPayload" ,
472
+ " DeleteParentByIdInput" : " DeleteParentByIdInput" ,
473
+ " DeleteParentInput" : " DeleteParentInput" ,
474
+ " DeleteParentPayload" : " DeleteParentPayload" ,
462
475
" ID" : " ID" ,
463
476
" Int" : " Int" ,
464
- " JSON" : " JSON" ,
465
477
" Mutation" : " Mutation" ,
466
478
" Node" : " Node" ,
467
479
" PageInfo" : " PageInfo" ,
480
+ " Parent" : " Parent" ,
481
+ " ParentCondition" : " ParentCondition" ,
482
+ " ParentInput" : " ParentInput" ,
483
+ " ParentNodeIdConnect" : " ParentNodeIdConnect" ,
484
+ " ParentOnChildForChildParentFkeyNodeIdUpdate" : " ParentOnChildForChildParentFkeyNodeIdUpdate" ,
485
+ " ParentOnChildForChildParentFkeyUsingParentPkeyUpdate" : " ParentOnChildForChildParentFkeyUsingParentPkeyUpdate" ,
486
+ " ParentParentPkeyConnect" : " ParentParentPkeyConnect" ,
487
+ " ParentPatch" : " ParentPatch" ,
488
+ " ParentsConnection" : " ParentsConnection" ,
489
+ " ParentsEdge" : " ParentsEdge" ,
490
+ " ParentsOrderBy" : " ParentsOrderBy" ,
468
491
" Query" : " Query" ,
469
492
" String" : " String" ,
470
- " UpdateUserByIdInput" : " UpdateUserByIdInput" ,
471
- " UpdateUserByUsernameInput" : " UpdateUserByUsernameInput" ,
472
- " UpdateUserInput" : " UpdateUserInput" ,
473
- " UpdateUserPayload" : " UpdateUserPayload" ,
474
- " UpdateUserPrivateByIdInput" : " UpdateUserPrivateByIdInput" ,
475
- " UpdateUserPrivateInput" : " UpdateUserPrivateInput" ,
476
- " UpdateUserPrivatePayload" : " UpdateUserPrivatePayload" ,
477
- " User" : " User" ,
478
- " UserCondition" : " UserCondition" ,
479
- " UserInput" : " UserInput" ,
480
- " UserNodeIdConnect" : " UserNodeIdConnect" ,
481
- " UserOnUserPrivateForUserPrivateIdFkeyNodeIdUpdate" : " UserOnUserPrivateForUserPrivateIdFkeyNodeIdUpdate" ,
482
- " UserOnUserPrivateForUserPrivateIdFkeyUsingUserPkeyUpdate" : " UserOnUserPrivateForUserPrivateIdFkeyUsingUserPkeyUpdate" ,
483
- " UserOnUserPrivateForUserPrivateIdFkeyUsingUserUsernameKeyUpdate" : " UserOnUserPrivateForUserPrivateIdFkeyUsingUserUsernameKeyUpdate" ,
484
- " UserPatch" : " UserPatch" ,
485
- " UserPrivate" : " UserPrivate" ,
486
- " UserPrivateCondition" : " UserPrivateCondition" ,
487
- " UserPrivateIdFkeyInput" : " UserPrivateIdFkeyInput" ,
488
- " UserPrivateIdFkeyInverseInput" : " UserPrivateIdFkeyInverseInput" ,
489
- " UserPrivateIdFkeyUserCreateInput" : " UserPrivateIdFkeyUserCreateInput" ,
490
- " UserPrivateIdFkeyUserPrivateCreateInput" : " UserPrivateIdFkeyUserPrivateCreateInput" ,
491
- " UserPrivateInput" : " UserPrivateInput" ,
492
- " UserPrivateNodeIdConnect" : " UserPrivateNodeIdConnect" ,
493
- " UserPrivateOnUserPrivateForUserPrivateIdFkeyNodeIdUpdate" : " UserPrivateOnUserPrivateForUserPrivateIdFkeyNodeIdUpdate" ,
494
- " UserPrivateOnUserPrivateForUserPrivateIdFkeyUsingUserPrivatePkeyUpdate" : " UserPrivateOnUserPrivateForUserPrivateIdFkeyUsingUserPrivatePkeyUpdate" ,
495
- " UserPrivatePatch" : " UserPrivatePatch" ,
496
- " UserPrivateUserPrivatePkeyConnect" : " UserPrivateUserPrivatePkeyConnect" ,
497
- " UserPrivatesConnection" : " UserPrivatesConnection" ,
498
- " UserPrivatesEdge" : " UserPrivatesEdge" ,
499
- " UserPrivatesOrderBy" : " UserPrivatesOrderBy" ,
500
- " UserUserPkeyConnect" : " UserUserPkeyConnect" ,
501
- " UserUserUsernameKeyConnect" : " UserUserUsernameKeyConnect" ,
502
- " UsersConnection" : " UsersConnection" ,
503
- " UsersEdge" : " UsersEdge" ,
504
- " UsersOrderBy" : " UsersOrderBy" ,
493
+ " UpdateChildByIdInput" : " UpdateChildByIdInput" ,
494
+ " UpdateChildInput" : " UpdateChildInput" ,
495
+ " UpdateChildPayload" : " UpdateChildPayload" ,
496
+ " UpdateParentByIdInput" : " UpdateParentByIdInput" ,
497
+ " UpdateParentInput" : " UpdateParentInput" ,
498
+ " UpdateParentPayload" : " UpdateParentPayload" ,
505
499
" __Directive" : " __Directive" ,
506
500
" __DirectiveLocation" : " __DirectiveLocation" ,
507
501
" __EnumValue" : " __EnumValue" ,
@@ -510,15 +504,15 @@ GraphQLSchema {
510
504
" __Schema" : " __Schema" ,
511
505
" __Type" : " __Type" ,
512
506
" __TypeKind" : " __TypeKind" ,
513
- " updateUserOnUserPrivateForUserPrivateIdFkeyPatch " : " updateUserOnUserPrivateForUserPrivateIdFkeyPatch " ,
514
- " updateUserPrivateOnUserPrivateForUserPrivateIdFkeyPatch " : " updateUserPrivateOnUserPrivateForUserPrivateIdFkeyPatch " ,
507
+ " updateChildOnChildForChildParentFkeyPatch " : " updateChildOnChildForChildParentFkeyPatch " ,
508
+ " updateParentOnChildForChildParentFkeyPatch " : " updateParentOnChildForChildParentFkeyPatch " ,
515
509
},
516
510
" astNode" : undefined ,
517
511
" extensionASTNodes" : undefined ,
518
512
}
519
513
` ;
520
514
521
- exports [` forward nested mutation with nested update 1` ] = `
515
+ exports [` forward nested mutation with nested update does not accept updates to constraint keys 1` ] = `
522
516
GraphQLSchema {
523
517
" __allowedLegacyNames" : Array [],
524
518
" __validationErrors" : undefined ,
@@ -606,10 +600,10 @@ GraphQLSchema {
606
600
}
607
601
` ;
608
602
609
- exports [` forward nested mutation with nested update does not accept updates to constraint keys 1` ] = `
603
+ exports [` forward nested mutation with nested updateByNodeId 1` ] = `
610
604
GraphQLSchema {
611
605
" __allowedLegacyNames" : Array [],
612
- " __validationErrors" : undefined ,
606
+ " __validationErrors" : Array [] ,
613
607
" _directives" : Array [
614
608
" @include" ,
615
609
" @skip" ,
@@ -694,10 +688,10 @@ GraphQLSchema {
694
688
}
695
689
` ;
696
690
697
- exports [` forward nested mutation with nested updateByNodeId 1` ] = `
691
+ exports [` reverse nested mutation with nested update 1` ] = `
698
692
GraphQLSchema {
699
693
" __allowedLegacyNames" : Array [],
700
- " __validationErrors" : Array [] ,
694
+ " __validationErrors" : undefined ,
701
695
" _directives" : Array [
702
696
" @include" ,
703
697
" @skip" ,
@@ -782,7 +776,7 @@ GraphQLSchema {
782
776
}
783
777
` ;
784
778
785
- exports [` reverse nested mutation with nested update 1` ] = `
779
+ exports [` updateByNodeId does not error 1` ] = `
786
780
GraphQLSchema {
787
781
" __allowedLegacyNames" : Array [],
788
782
" __validationErrors" : undefined ,
@@ -791,6 +785,100 @@ GraphQLSchema {
791
785
" @skip" ,
792
786
" @deprecated" ,
793
787
],
788
+ " _implementations" : Object {
789
+ " Node" : Array [
790
+ " Query" ,
791
+ " User" ,
792
+ " UserPrivate" ,
793
+ ],
794
+ },
795
+ " _mutationType" : " Mutation" ,
796
+ " _possibleTypeMap" : undefined ,
797
+ " _queryType" : " Query" ,
798
+ " _subscriptionType" : undefined ,
799
+ " _typeMap" : Object {
800
+ " BigInt" : " BigInt" ,
801
+ " Boolean" : " Boolean" ,
802
+ " CreateUserInput" : " CreateUserInput" ,
803
+ " CreateUserPayload" : " CreateUserPayload" ,
804
+ " CreateUserPrivateInput" : " CreateUserPrivateInput" ,
805
+ " CreateUserPrivatePayload" : " CreateUserPrivatePayload" ,
806
+ " Cursor" : " Cursor" ,
807
+ " DeleteUserByIdInput" : " DeleteUserByIdInput" ,
808
+ " DeleteUserByUsernameInput" : " DeleteUserByUsernameInput" ,
809
+ " DeleteUserInput" : " DeleteUserInput" ,
810
+ " DeleteUserPayload" : " DeleteUserPayload" ,
811
+ " DeleteUserPrivateByIdInput" : " DeleteUserPrivateByIdInput" ,
812
+ " DeleteUserPrivateInput" : " DeleteUserPrivateInput" ,
813
+ " DeleteUserPrivatePayload" : " DeleteUserPrivatePayload" ,
814
+ " ID" : " ID" ,
815
+ " Int" : " Int" ,
816
+ " JSON" : " JSON" ,
817
+ " Mutation" : " Mutation" ,
818
+ " Node" : " Node" ,
819
+ " PageInfo" : " PageInfo" ,
820
+ " Query" : " Query" ,
821
+ " String" : " String" ,
822
+ " UpdateUserByIdInput" : " UpdateUserByIdInput" ,
823
+ " UpdateUserByUsernameInput" : " UpdateUserByUsernameInput" ,
824
+ " UpdateUserInput" : " UpdateUserInput" ,
825
+ " UpdateUserPayload" : " UpdateUserPayload" ,
826
+ " UpdateUserPrivateByIdInput" : " UpdateUserPrivateByIdInput" ,
827
+ " UpdateUserPrivateInput" : " UpdateUserPrivateInput" ,
828
+ " UpdateUserPrivatePayload" : " UpdateUserPrivatePayload" ,
829
+ " User" : " User" ,
830
+ " UserCondition" : " UserCondition" ,
831
+ " UserInput" : " UserInput" ,
832
+ " UserNodeIdConnect" : " UserNodeIdConnect" ,
833
+ " UserOnUserPrivateForUserPrivateIdFkeyNodeIdUpdate" : " UserOnUserPrivateForUserPrivateIdFkeyNodeIdUpdate" ,
834
+ " UserOnUserPrivateForUserPrivateIdFkeyUsingUserPkeyUpdate" : " UserOnUserPrivateForUserPrivateIdFkeyUsingUserPkeyUpdate" ,
835
+ " UserOnUserPrivateForUserPrivateIdFkeyUsingUserUsernameKeyUpdate" : " UserOnUserPrivateForUserPrivateIdFkeyUsingUserUsernameKeyUpdate" ,
836
+ " UserPatch" : " UserPatch" ,
837
+ " UserPrivate" : " UserPrivate" ,
838
+ " UserPrivateCondition" : " UserPrivateCondition" ,
839
+ " UserPrivateIdFkeyInput" : " UserPrivateIdFkeyInput" ,
840
+ " UserPrivateIdFkeyInverseInput" : " UserPrivateIdFkeyInverseInput" ,
841
+ " UserPrivateIdFkeyUserCreateInput" : " UserPrivateIdFkeyUserCreateInput" ,
842
+ " UserPrivateIdFkeyUserPrivateCreateInput" : " UserPrivateIdFkeyUserPrivateCreateInput" ,
843
+ " UserPrivateInput" : " UserPrivateInput" ,
844
+ " UserPrivateNodeIdConnect" : " UserPrivateNodeIdConnect" ,
845
+ " UserPrivateOnUserPrivateForUserPrivateIdFkeyNodeIdUpdate" : " UserPrivateOnUserPrivateForUserPrivateIdFkeyNodeIdUpdate" ,
846
+ " UserPrivateOnUserPrivateForUserPrivateIdFkeyUsingUserPrivatePkeyUpdate" : " UserPrivateOnUserPrivateForUserPrivateIdFkeyUsingUserPrivatePkeyUpdate" ,
847
+ " UserPrivatePatch" : " UserPrivatePatch" ,
848
+ " UserPrivateUserPrivatePkeyConnect" : " UserPrivateUserPrivatePkeyConnect" ,
849
+ " UserPrivatesConnection" : " UserPrivatesConnection" ,
850
+ " UserPrivatesEdge" : " UserPrivatesEdge" ,
851
+ " UserPrivatesOrderBy" : " UserPrivatesOrderBy" ,
852
+ " UserUserPkeyConnect" : " UserUserPkeyConnect" ,
853
+ " UserUserUsernameKeyConnect" : " UserUserUsernameKeyConnect" ,
854
+ " UsersConnection" : " UsersConnection" ,
855
+ " UsersEdge" : " UsersEdge" ,
856
+ " UsersOrderBy" : " UsersOrderBy" ,
857
+ " __Directive" : " __Directive" ,
858
+ " __DirectiveLocation" : " __DirectiveLocation" ,
859
+ " __EnumValue" : " __EnumValue" ,
860
+ " __Field" : " __Field" ,
861
+ " __InputValue" : " __InputValue" ,
862
+ " __Schema" : " __Schema" ,
863
+ " __Type" : " __Type" ,
864
+ " __TypeKind" : " __TypeKind" ,
865
+ " updateUserOnUserPrivateForUserPrivateIdFkeyPatch" : " updateUserOnUserPrivateForUserPrivateIdFkeyPatch" ,
866
+ " updateUserPrivateOnUserPrivateForUserPrivateIdFkeyPatch" : " updateUserPrivateOnUserPrivateForUserPrivateIdFkeyPatch" ,
867
+ },
868
+ " astNode" : undefined ,
869
+ " extensionASTNodes" : undefined ,
870
+ }
871
+ ` ;
872
+
873
+ exports [` updateByNodeId with composite primary key works 1` ] = `
874
+ GraphQLSchema {
875
+ " __allowedLegacyNames" : Array [],
876
+ " __validationErrors" : Array [],
877
+ " _directives" : Array [
878
+ " @include" ,
879
+ " @skip" ,
880
+ " @deprecated" ,
881
+ ],
794
882
" _implementations" : Object {
795
883
" Node" : Array [
796
884
" Query" ,
@@ -824,7 +912,7 @@ GraphQLSchema {
824
912
" CreateParentInput" : " CreateParentInput" ,
825
913
" CreateParentPayload" : " CreateParentPayload" ,
826
914
" Cursor" : " Cursor" ,
827
- " DeleteChildByIdInput " : " DeleteChildByIdInput " ,
915
+ " DeleteChildByIdAndParentIdAndNameInput " : " DeleteChildByIdAndParentIdAndNameInput " ,
828
916
" DeleteChildInput" : " DeleteChildInput" ,
829
917
" DeleteChildPayload" : " DeleteChildPayload" ,
830
918
" DeleteParentByIdInput" : " DeleteParentByIdInput" ,
@@ -848,7 +936,7 @@ GraphQLSchema {
848
936
" ParentsOrderBy" : " ParentsOrderBy" ,
849
937
" Query" : " Query" ,
850
938
" String" : " String" ,
851
- " UpdateChildByIdInput " : " UpdateChildByIdInput " ,
939
+ " UpdateChildByIdAndParentIdAndNameInput " : " UpdateChildByIdAndParentIdAndNameInput " ,
852
940
" UpdateChildInput" : " UpdateChildInput" ,
853
941
" UpdateChildPayload" : " UpdateChildPayload" ,
854
942
" UpdateParentByIdInput" : " UpdateParentByIdInput" ,
0 commit comments