File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import { getDirectiveValues } from './values.js';
2424
2525export type FieldGroup = ReadonlyArray < FieldNode > ;
2626
27+ export type GroupedFieldSet = Map < string , FieldGroup > ;
28+
2729/**
2830 * Given a selectionSet, collects all of the fields and returns them.
2931 *
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import {
4646import type { GraphQLSchema } from '../type/schema.js' ;
4747import { assertValidSchema } from '../type/validate.js' ;
4848
49- import type { FieldGroup } from './collectFields.js' ;
49+ import type { FieldGroup , GroupedFieldSet } from './collectFields.js' ;
5050import {
5151 collectFields ,
5252 collectSubfields as _collectSubfields ,
@@ -433,7 +433,7 @@ function executeFieldsSerially(
433433 parentType : GraphQLObjectType ,
434434 sourceValue : unknown ,
435435 path : Path | undefined ,
436- fields : Map < string , FieldGroup > ,
436+ fields : GroupedFieldSet ,
437437) : PromiseOrValue < ObjMap < unknown > > {
438438 return promiseReduce (
439439 fields ,
You can’t perform that action at this time.
0 commit comments