@@ -763,6 +763,7 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
763763 extensions : Readonly < GraphQLObjectTypeExtensions < TSource , TContext > > ;
764764 astNode : Maybe < ObjectTypeDefinitionNode > ;
765765 extensionASTNodes : ReadonlyArray < ObjectTypeExtensionNode > ;
766+ isOneOf : boolean ;
766767
767768 private _fields : ThunkObjMap < GraphQLField < TSource , TContext > > ;
768769 private _interfaces : ThunkReadonlyArray < GraphQLInterfaceType > ;
@@ -774,6 +775,7 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
774775 this . extensions = toObjMap ( config . extensions ) ;
775776 this . astNode = config . astNode ;
776777 this . extensionASTNodes = config . extensionASTNodes ?? [ ] ;
778+ this . isOneOf = config . isOneOf ?? false ;
777779
778780 this . _fields = ( ) => defineFieldMap ( config ) ;
779781 this . _interfaces = ( ) => defineInterfaces ( config ) ;
@@ -942,6 +944,7 @@ export interface GraphQLObjectTypeConfig<TSource, TContext> {
942944 extensions ?: Maybe < Readonly < GraphQLObjectTypeExtensions < TSource , TContext > > > ;
943945 astNode ?: Maybe < ObjectTypeDefinitionNode > ;
944946 extensionASTNodes ?: Maybe < ReadonlyArray < ObjectTypeExtensionNode > > ;
947+ isOneOf ?: boolean ;
945948}
946949
947950interface GraphQLObjectTypeNormalizedConfig < TSource , TContext >
@@ -1611,6 +1614,7 @@ export class GraphQLInputObjectType {
16111614 extensions : Readonly < GraphQLInputObjectTypeExtensions > ;
16121615 astNode : Maybe < InputObjectTypeDefinitionNode > ;
16131616 extensionASTNodes : ReadonlyArray < InputObjectTypeExtensionNode > ;
1617+ isOneOf : boolean ;
16141618
16151619 private _fields : ThunkObjMap < GraphQLInputField > ;
16161620
@@ -1620,6 +1624,7 @@ export class GraphQLInputObjectType {
16201624 this . extensions = toObjMap ( config . extensions ) ;
16211625 this . astNode = config . astNode ;
16221626 this . extensionASTNodes = config . extensionASTNodes ?? [ ] ;
1627+ this . isOneOf = config . isOneOf ?? false ;
16231628
16241629 this . _fields = defineInputFieldMap . bind ( undefined , config ) ;
16251630 }
@@ -1652,6 +1657,7 @@ export class GraphQLInputObjectType {
16521657 extensions : this . extensions ,
16531658 astNode : this . astNode ,
16541659 extensionASTNodes : this . extensionASTNodes ,
1660+ isOneOf : this . isOneOf ,
16551661 } ;
16561662 }
16571663
@@ -1697,6 +1703,7 @@ export interface GraphQLInputObjectTypeConfig {
16971703 extensions ?: Maybe < Readonly < GraphQLInputObjectTypeExtensions > > ;
16981704 astNode ?: Maybe < InputObjectTypeDefinitionNode > ;
16991705 extensionASTNodes ?: Maybe < ReadonlyArray < InputObjectTypeExtensionNode > > ;
1706+ isOneOf ?: boolean ;
17001707}
17011708
17021709interface GraphQLInputObjectTypeNormalizedConfig
0 commit comments