FieldContext: comments

This commit is contained in:
Tobe O 2019-08-07 22:49:39 -04:00
parent 4881363dc7
commit 517d3ee316

View file

@ -5,10 +5,18 @@ import 'field_name.dart';
import 'node.dart'; import 'node.dart';
import 'selection_set.dart'; import 'selection_set.dart';
/// A field in a GraphQL [SelectionSet].
class FieldContext extends Node { class FieldContext extends Node {
/// The name of this field.
final FieldNameContext fieldName; final FieldNameContext fieldName;
/// Any arguments this field expects.
final List<ArgumentContext> arguments = []; final List<ArgumentContext> arguments = [];
/// Any directives affixed to this field.
final List<DirectiveContext> directives = []; final List<DirectiveContext> directives = [];
/// The list of selections to resolve on an object.
final SelectionSetContext selectionSet; final SelectionSetContext selectionSet;
FieldContext(this.fieldName, [this.selectionSet]); FieldContext(this.fieldName, [this.selectionSet]);