@@ -195,7 +195,8 @@ describe('Type System: Objects', () => {
195195 input : {
196196 description : 'Argument description.' ,
197197 type : ScalarType ,
198- defaultValue : 'DefaultValue' ,
198+ defaultValue : undefined ,
199+ externalDefaultValue : 'DefaultValue' ,
199200 defaultValueLiteral : undefined ,
200201 deprecationReason : 'Argument deprecation reason.' ,
201202 extensions : { someExtension : 'extension' } ,
@@ -343,6 +344,7 @@ describe('Type System: Objects', () => {
343344 description : undefined ,
344345 type : ScalarType ,
345346 defaultValue : undefined ,
347+ externalDefaultValue : undefined ,
346348 deprecationReason : undefined ,
347349 extensions : { } ,
348350 astNode : undefined ,
@@ -467,6 +469,7 @@ describe('Type System: Interfaces', () => {
467469 description : 'Argument description.' ,
468470 type : ScalarType ,
469471 defaultValue : undefined ,
472+ externalDefaultValue : undefined ,
470473 defaultValueLiteral : dummyAny ,
471474 deprecationReason : 'Argument deprecation reason.' ,
472475 extensions : { someExtension : 'extension' } ,
@@ -802,7 +805,8 @@ describe('Type System: Input Objects', () => {
802805 input : {
803806 description : 'Argument description.' ,
804807 type : ScalarType ,
805- defaultValue : 'DefaultValue' ,
808+ defaultValue : undefined ,
809+ externalDefaultValue : 'DefaultValue' ,
806810 defaultValueLiteral : undefined ,
807811 deprecationReason : 'Argument deprecation reason.' ,
808812 extensions : { someExtension : 'extension' } ,
@@ -832,6 +836,7 @@ describe('Type System: Input Objects', () => {
832836 description : undefined ,
833837 type : ScalarType ,
834838 defaultValue : undefined ,
839+ externalDefaultValue : undefined ,
835840 deprecationReason : undefined ,
836841 extensions : { } ,
837842 astNode : undefined ,
@@ -852,6 +857,7 @@ describe('Type System: Input Objects', () => {
852857 description : undefined ,
853858 type : ScalarType ,
854859 defaultValue : undefined ,
860+ externalDefaultValue : undefined ,
855861 extensions : { } ,
856862 deprecationReason : undefined ,
857863 astNode : undefined ,
@@ -901,14 +907,15 @@ describe('Type System: Input Objects', () => {
901907 const inputObjType = new GraphQLInputObjectType ( {
902908 name : 'SomeInputObject' ,
903909 fields : {
904- f : { type : ScalarType , defaultValue : 3 } ,
910+ f : { type : ScalarType , externalDefaultValue : 3 } ,
905911 } ,
906912 } ) ;
907913 expect ( inputObjType . getFields ( ) . f ) . to . deep . include ( {
908914 name : 'f' ,
909915 description : undefined ,
910916 type : ScalarType ,
911- defaultValue : { value : 3 } ,
917+ defaultValue : undefined ,
918+ externalDefaultValue : { value : 3 } ,
912919 deprecationReason : undefined ,
913920 extensions : { } ,
914921 astNode : undefined ,
@@ -929,7 +936,8 @@ describe('Type System: Input Objects', () => {
929936 name : 'f' ,
930937 description : undefined ,
931938 type : ScalarType ,
932- defaultValue : { literal : { kind : 'IntValue' , value : '3' } } ,
939+ defaultValue : undefined ,
940+ externalDefaultValue : { literal : { kind : 'IntValue' , value : '3' } } ,
933941 deprecationReason : undefined ,
934942 extensions : { } ,
935943 astNode : undefined ,
@@ -942,13 +950,13 @@ describe('Type System: Input Objects', () => {
942950 fields : {
943951 f : {
944952 type : ScalarType ,
945- defaultValue : 3 ,
953+ externalDefaultValue : 3 ,
946954 defaultValueLiteral : { kind : Kind . INT , value : '3' } ,
947955 } ,
948956 } ,
949957 } ) ;
950958 expect ( ( ) => inputObjType . getFields ( ) ) . to . throw (
951- 'Argument "f" has both a defaultValue and a defaultValueLiteral property, but only one must be provided.' ,
959+ 'Argument "f" has both an externalDefaultValue and a defaultValueLiteral property, but only one must be provided.' ,
952960 ) ;
953961 } ) ;
954962 } ) ;
0 commit comments