diff --git a/graphql_parser/lib/src/language/ast/field.dart b/graphql_parser/lib/src/language/ast/field.dart index 5aca6469..2998d822 100644 --- a/graphql_parser/lib/src/language/ast/field.dart +++ b/graphql_parser/lib/src/language/ast/field.dart @@ -5,10 +5,18 @@ import 'field_name.dart'; import 'node.dart'; import 'selection_set.dart'; +/// A field in a GraphQL [SelectionSet]. class FieldContext extends Node { + /// The name of this field. final FieldNameContext fieldName; + + /// Any arguments this field expects. final List arguments = []; + + /// Any directives affixed to this field. final List directives = []; + + /// The list of selections to resolve on an object. final SelectionSetContext selectionSet; FieldContext(this.fieldName, [this.selectionSet]);