1 | import { GraphQLObjectType, SelectionSetNode, FieldNode } from 'graphql';
|
2 | import { GraphQLExecutionContext } from './Interfaces';
|
3 | /**
|
4 | * Given a selectionSet, adds all of the fields in that selection to
|
5 | * the passed in map of fields, and returns it at the end.
|
6 | *
|
7 | * CollectFields requires the "runtime type" of an object. For a field which
|
8 | * returns an Interface or Union type, the "runtime type" will be the actual
|
9 | * Object type returned by that field.
|
10 | *
|
11 | * @internal
|
12 | */
|
13 | export declare function collectFields(exeContext: GraphQLExecutionContext, runtimeType: GraphQLObjectType, selectionSet: SelectionSetNode, fields: Record<string, Array<FieldNode>>, visitedFragmentNames: Record<string, boolean>): Record<string, Array<FieldNode>>;
|