@@ -204,7 +204,8 @@ describe('Type System: Objects', () => {
204204 input : {
205205 description : 'Argument description.' ,
206206 type : ScalarType ,
207- defaultValue : 'DefaultValue' ,
207+ defaultValue : undefined ,
208+ externalDefaultValue : 'DefaultValue' ,
208209 defaultValueLiteral : undefined ,
209210 deprecationReason : 'Argument deprecation reason.' ,
210211 extensions : { someExtension : 'extension' } ,
@@ -377,6 +378,7 @@ describe('Type System: Objects', () => {
377378 description : undefined ,
378379 type : ScalarType ,
379380 defaultValue : undefined ,
381+ externalDefaultValue : undefined ,
380382 deprecationReason : undefined ,
381383 extensions : { } ,
382384 astNode : undefined ,
@@ -493,6 +495,7 @@ describe('Type System: Interfaces', () => {
493495 description : 'Argument description.' ,
494496 type : ScalarType ,
495497 defaultValue : undefined ,
498+ externalDefaultValue : undefined ,
496499 defaultValueLiteral : dummyAny ,
497500 deprecationReason : 'Argument deprecation reason.' ,
498501 extensions : { someExtension : 'extension' } ,
@@ -830,7 +833,8 @@ describe('Type System: Input Objects', () => {
830833 input : {
831834 description : 'Argument description.' ,
832835 type : ScalarType ,
833- defaultValue : 'DefaultValue' ,
836+ defaultValue : undefined ,
837+ externalDefaultValue : 'DefaultValue' ,
834838 defaultValueLiteral : undefined ,
835839 deprecationReason : 'Argument deprecation reason.' ,
836840 extensions : { someExtension : 'extension' } ,
@@ -860,6 +864,7 @@ describe('Type System: Input Objects', () => {
860864 description : undefined ,
861865 type : ScalarType ,
862866 defaultValue : undefined ,
867+ externalDefaultValue : undefined ,
863868 deprecationReason : undefined ,
864869 extensions : { } ,
865870 astNode : undefined ,
@@ -879,6 +884,7 @@ describe('Type System: Input Objects', () => {
879884 description : undefined ,
880885 type : ScalarType ,
881886 defaultValue : undefined ,
887+ externalDefaultValue : undefined ,
882888 extensions : { } ,
883889 deprecationReason : undefined ,
884890 astNode : undefined ,
@@ -927,14 +933,15 @@ describe('Type System: Input Objects', () => {
927933 const inputObjType = new GraphQLInputObjectType ( {
928934 name : 'SomeInputObject' ,
929935 fields : {
930- f : { type : ScalarType , defaultValue : 3 } ,
936+ f : { type : ScalarType , externalDefaultValue : 3 } ,
931937 } ,
932938 } ) ;
933939 expect ( inputObjType . getFields ( ) . f ) . to . deep . include ( {
934940 name : 'f' ,
935941 description : undefined ,
936942 type : ScalarType ,
937- defaultValue : { value : 3 } ,
943+ defaultValue : undefined ,
944+ externalDefaultValue : { value : 3 } ,
938945 deprecationReason : undefined ,
939946 extensions : { } ,
940947 astNode : undefined ,
@@ -955,7 +962,8 @@ describe('Type System: Input Objects', () => {
955962 name : 'f' ,
956963 description : undefined ,
957964 type : ScalarType ,
958- defaultValue : { literal : { kind : 'IntValue' , value : '3' } } ,
965+ defaultValue : undefined ,
966+ externalDefaultValue : { literal : { kind : 'IntValue' , value : '3' } } ,
959967 deprecationReason : undefined ,
960968 extensions : { } ,
961969 astNode : undefined ,
@@ -968,13 +976,13 @@ describe('Type System: Input Objects', () => {
968976 fields : {
969977 f : {
970978 type : ScalarType ,
971- defaultValue : 3 ,
979+ externalDefaultValue : 3 ,
972980 defaultValueLiteral : { kind : Kind . INT , value : '3' } ,
973981 } ,
974982 } ,
975983 } ) ;
976984 expect ( ( ) => inputObjType . getFields ( ) ) . to . throw (
977- 'Argument "f" has both a defaultValue and a defaultValueLiteral property, but only one must be provided.' ,
985+ 'Argument "f" has both an externalDefaultValue and a defaultValueLiteral property, but only one must be provided.' ,
978986 ) ;
979987 } ) ;
980988 } ) ;
0 commit comments