visitDocumentNode method

  1. @override
List<GraphQLError>? visitDocumentNode(
  1. DocumentNode node
)

Visit DocumentNode.

Implementation

@override
List<GraphQLError>? visitDocumentNode(DocumentNode node) {
  operationCount =
      node.definitions.whereType<OperationDefinitionNode>().length;
}