Union type doc comments
This commit is contained in:
parent
bc206ea622
commit
a297dcad46
1 changed files with 6 additions and 0 deletions
|
@ -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<String, dynamic>, Map<String, dynamic>>
|
||||
with _NonNullableMixin<Map<String, dynamic>, Map<String, dynamic>> {
|
||||
/// The name of this type.
|
||||
final String name;
|
||||
|
||||
/// A list of all types that conform to this union.
|
||||
final List<GraphQLObjectType> possibleTypes = [];
|
||||
|
||||
GraphQLUnionType(
|
||||
|
|
Loading…
Reference in a new issue