Union type doc comments

This commit is contained in:
Tobe O 2018-08-04 22:37:00 -04:00
parent bc206ea622
commit a297dcad46

View file

@ -1,9 +1,15 @@
part of graphql_schema.src.schema; 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 class GraphQLUnionType
extends GraphQLType<Map<String, dynamic>, Map<String, dynamic>> extends GraphQLType<Map<String, dynamic>, Map<String, dynamic>>
with _NonNullableMixin<Map<String, dynamic>, Map<String, dynamic>> { with _NonNullableMixin<Map<String, dynamic>, Map<String, dynamic>> {
/// The name of this type.
final String name; final String name;
/// A list of all types that conform to this union.
final List<GraphQLObjectType> possibleTypes = []; final List<GraphQLObjectType> possibleTypes = [];
GraphQLUnionType( GraphQLUnionType(