diff --git a/graphql_schema/lib/src/union.dart b/graphql_schema/lib/src/union.dart index 5253ac27..e6d8bc9a 100644 --- a/graphql_schema/lib/src/union.dart +++ b/graphql_schema/lib/src/union.dart @@ -1,9 +1,15 @@ part of graphql_schema.src.schema; +/// A special [GraphQLType] that indicates that an input value may be valid against one or more [possibleTypes]. +/// +/// All provided types must be [GraphQLObjectType]s. class GraphQLUnionType extends GraphQLType, Map> with _NonNullableMixin, Map> { + /// The name of this type. final String name; + + /// A list of all types that conform to this union. final List possibleTypes = []; GraphQLUnionType(