From a297dcad46c6302a01fe9233686fac50eef82720 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sat, 4 Aug 2018 22:37:00 -0400 Subject: [PATCH] Union type doc comments --- graphql_schema/lib/src/union.dart | 6 ++++++ 1 file changed, 6 insertions(+) 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(